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