«Persistent Object»
Stereotype «PersistentObject»
can be used to define all information needed to map a class to a relational database using Java Persistence API (JPA).
Stereotype |
| |
Applicable Elements |
| |
Tagged Values | ||
Name | Type | Description |
|
| The JEAF Generator will check and ensure it’s uniqueness and will produce an error if this constraint is not met. It’s recommended to work with value ranges for for Class-IDs if your model becomes a little larger. |
|
| Attribute defines the name of the table that is used to store objects of this class in a database. If the attribute is not set then the no qualified name of the class in upper case letters will be used. Please be aware of specific length and keyword restrictions depending on the used relational database. |
|
| Attribute defines the locking behavior of the class. If the attribute is set to Default value is |
|
| Optional attribute can be used to define the name of the row that is used to store the so called Object-ID. The Object-ID is the object oriented equivalent to a primary key on the database. If the attribute is not set then the globally configured default value of JEAF Generator is used. |
|
| Optional attribute can be used to define the name of the row that is used as version label for optimistic locking. If the attribute is not set then the globally configured default value of JEAF Generator is used. |
For further information please refer to: