private static void configureAbstractEntity(Configuration config) {
ObjectClass abstractEntityClass = config.objectClass(AbstractEntity.class);
ObjectField idField = abstractEntityClass.objectField("fId"); //$NON-NLS-1$
idField.indexed(true);
idField.cascadeOnActivate(true);
abstractEntityClass.objectField("fProperties").cascadeOnUpdate(true); //$NON-NLS-1$
}
private static void configureFolder(Configuration config) {
ObjectClass oc = config.objectClass(Folder.class);
oc.objectField("fChildren").cascadeOnUpdate(true); //$NON-NLS-1$