/** * After entity is created, initialize all required attributes. * @param type * @param entity */ public void initializeProperties(DynamicTypeImpl type, DynamicEntityImpl entity) { if (type != null) { for (DatabaseMapping mapping : type.getMappingsRequiringInitialization()) { initializeDefaultValue(mapping, entity); } } }
protected void initializeSlotValues(DynamicEntityImpl entity) { getInitializatonPolicy().initializeProperties((DynamicTypeImpl)type, entity); }
protected void initializeSlotValues(DynamicEntityImpl entity) { getInitializatonPolicy().initializeProperties((DynamicTypeImpl)type, entity); }
/** * After entity is created, initialize all required attributes. * @param type * @param entity */ public void initializeProperties(DynamicTypeImpl type, DynamicEntityImpl entity) { if (type != null) { for (DatabaseMapping mapping : type.getMappingsRequiringInitialization()) { initializeDefaultValue(mapping, entity); } } }