use of org.uberfire.ext.properties.editor.model.PropertyEditorCategory in project kie-wb-common by kiegroup.
the class JPADataObjectEditor method getPropertyEditorCategories.
protected List<PropertyEditorCategory> getPropertyEditorCategories() {
final List<PropertyEditorCategory> categories = new ArrayList<PropertyEditorCategory>();
PropertyEditorCategory category = new PropertyEditorCategory(getEntityCategoryName(), 1);
categories.add(category);
category.withField(createEntityField());
category.withField(createTableNameField());
if (handler.isDataObjectAuditEnabled()) {
category.withField(createAuditedField());
}
return categories;
}
use of org.uberfire.ext.properties.editor.model.PropertyEditorCategory in project kie-wb-common by kiegroup.
the class JPADataObjectFieldEditor method getPropertyEditorCategories.
protected List<PropertyEditorCategory> getPropertyEditorCategories() {
final List<PropertyEditorCategory> categories = new ArrayList<>();
PropertyEditorCategory category = new PropertyEditorCategory(getIdentifierCategoryName(), 1);
categories.add(category);
category.withField(createIdentifierField());
category.withField(createGeneratedValueField());
category.withField(createSequenceGeneratorField());
category = new PropertyEditorCategory(getColumnCategoryName(), 2);
categories.add(category);
category.withField(createColumnNameField());
category.withField(createColumnUniqueField());
category.withField(createColumnNullableField());
category.withField(createColumnInsertableField());
category.withField(createColumnUpdatableField());
category = new PropertyEditorCategory(getRelationshipCategoryName(), 3);
categories.add(category);
category.withField(createRelationShipTypeField());
return categories;
}
Aggregations