Java Persistence API (JPA) defines so called persistence units. They are used to put a bunch of persistence objects together. All persistent classes within the same persistence unit share the same database connection and transaction.
Stereotype «PersistenceUnit»
can be used to define a persistent unit. Therefore the persistence unit has to reference the packages from which the unit should be build up. JEAF Components that want to make use of classes of a persistence unit need to define a corresponding dependency. For further details about modelling persistence units please refer to How to model Persistence Units.
Stereotype |
| |
Applicable Elements |
| |
Tagged Values | ||
Name | Type | Description |
|
| Attribute was used in previous versions of JEAF to define the name of the entity manager that is connected with the persistence unit. Meanwhile this information is not needed any longer and so this attribute is not relevant any more. Attribute is deprecated and will be removed in one of the next releases. |
|
| Optional attribute Possible values are:
Default value is |
|
| Optional attribute Possible values are the same as for attribute Default value is |