* 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:
parent
cb03565e33
commit
79970a0b77
1 changed files with 7 additions and 0 deletions
|
@ -137,6 +137,13 @@ public final class Node implements INode, Serializable {
|
||||||
this.name = (name == null) ? "" : name;
|
this.name = (name == null) ? "" : name;
|
||||||
created = lastmodified = System.currentTimeMillis();
|
created = lastmodified = System.currentTimeMillis();
|
||||||
state = TRANSIENT;
|
state = TRANSIENT;
|
||||||
|
|
||||||
|
if (prototype != null && dbmap != null) {
|
||||||
|
String protoProperty = dbmap.columnNameToProperty(dbmap.getPrototypeField());
|
||||||
|
if (protoProperty != null) {
|
||||||
|
setString(protoProperty, prototype);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue