Search in sources :

Example 1 with PropertyEditorCategory

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;
}
Also used : PropertyEditorCategory(org.uberfire.ext.properties.editor.model.PropertyEditorCategory) ArrayList(java.util.ArrayList)

Example 2 with PropertyEditorCategory

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;
}
Also used : PropertyEditorCategory(org.uberfire.ext.properties.editor.model.PropertyEditorCategory) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)2 PropertyEditorCategory (org.uberfire.ext.properties.editor.model.PropertyEditorCategory)2