diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index f9986d10..033787aa 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -137,6 +137,13 @@ public final class Node implements INode, Serializable { this.name = (name == null) ? "" : name; created = lastmodified = System.currentTimeMillis(); state = TRANSIENT; + + if (prototype != null && dbmap != null) { + String protoProperty = dbmap.columnNameToProperty(dbmap.getPrototypeField()); + if (protoProperty != null) { + setString(protoProperty, prototype); + } + } } /**