* Check if prototype column is mapped to a HopObject property in

constructor. If so, set the property to the prototype name.
This commit is contained in:
hns 2007-04-20 13:44:39 +00:00
parent cb03565e33
commit 79970a0b77

View file

@ -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);
}
}
}
/**