5.5. Data Object Domain Screens
The following domain screen tabs can be selected from the right side of the Data Object editor screen.
Drools & jBPM
The Drools & jBPM screen allows configuration of Drools-specific attributes.
The Data Modeler in Business Central supports the editing of pre-defined annotations of fact model classes and attributes. The following Drools annotations are supported, and can be customized using the Drools & jBPM interface:
-
TypeSafe -
Role -
Timestamp -
Duration -
Expires

For the fields within the fact model, the position annotation is supported. The Drools & jBPM screen when a specific field is selected looks as follows:

Persistence
The Persistence screen can be used to configure attributes on basic JPA annotations for persistence. Fine tuning of annotations, or to add specific annotations, use the Advanced screen.

The Persistence screen when a specific field is selected looks as follows:

The following annotations can be managed via the Persistence screen.
Table 5.1. Type Annotations
| Annotation | Automatically Generated when Data Object is Persistable |
|---|---|
| javax.persistence.Entity | Yes |
| javax.persistence.Table | No |
Table 5.2. Field Annotations
| Annotation | Automatically Generated when Data Object is Persistable |
|---|---|
| javax.persistence.Id | Yes |
| javax.persistence.GeneratedValue | Yes |
| javax.persistence.SequenceGenerator | Yes |
| javax.persistence.Column | No |
| javax.persistence.OneToOne | No |
| javax.persistence.OneToMany | Yes - when a field has one or multiple values |
| javax.persistence.ManyToOne | Yes - when a field has multiple values |
| javax.persistence.ManyToMany | No |
| javax.persistence.ElementCollection | Yes - generated by the UI when a new field has one or multiple of a base java type, such as Integer, Boolean, String. This annotation cannot be edited with the Persistence screen tool (use the Advanced screen tool instead). |
All other JPA annotations can be added using the Advanced screen.
Advanced
The Advanced screen is used for fine-tuning of annotations. Annotations can be configured, added and removed using the Advanced Domain screen. These can be any annotation that is on the classpath.

After you click on the add annotation option, the Add new Annotation window is displayed. It is required to enter a fully qualified class name of an annotation and by pressing the search icon, the annotation definition is loaded into the wizard. Then it is possible to set different annotation parameters (required parameters are marked with *).

If possible, the wizard will provide a suitable editor for the given parameters.

If it is not possible to provide a customized editor, the wizard will provide a generic parameter editor.

After you enter all the required parameters, the Finish button is enabled and the annotation can be added to the given field or data object.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.