diff --git a/framework/entity/dtd/entitymodel.xsd b/framework/entity/dtd/entitymodel.xsd index e2677abe96..087da2f818 100644 --- a/framework/entity/dtd/entitymodel.xsd +++ b/framework/entity/dtd/entitymodel.xsd @@ -453,5 +453,6 @@ under the License. + diff --git a/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java b/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java index c45e1a240f..c70c4ecf1b 100644 --- a/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java +++ b/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java @@ -103,6 +103,12 @@ public class ModelEntity extends ModelInfo implements Comparable, S /** indexes on fields/columns in this entity */ protected List indexes = FastList.newInstance(); + /** The reference of the dependentOn entity model */ + protected ModelEntity specializationOfModelEntity = null; + + /** The list of entities that are specialization of on this entity */ + protected Map specializedEntities = FastMap.newInstance(); + /** map of ModelViewEntities that references this model */ protected Set viewEntities = FastSet.newInstance(); @@ -316,6 +322,9 @@ public class ModelEntity extends ModelInfo implements Comparable, S this.populateRelated(reader, extendEntityElement); this.populateIndexes(extendEntityElement); + // Begin addon modification : depend-on-inExtend + this.dependentOn = UtilXml.checkEmpty(extendEntityElement.getAttribute("dependent-on")).intern(); + // End addon modification : depend-on-inExtend } // ===== GETTERS/SETTERS =====