Stereotype «PersistenceUnit»
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 persistence 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 dependency on it.
Stereotype | «PersistenceUnit» |
|
---|---|---|
Applicable Elements | Component |
|
Tagged Values | ||
Name | Type | Description |
entityManagerJNDI |
String |
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. |
showSQL |
ConfigurationMode |
Optional attribute showSQL is used to control SQL logging for all persistent objects that belong to the persistence unit. Possible values are: - TRUE / FALSE : Logging is active or not- GLOBAL_PROPERTY : Logging is controlled for this persistence units by one global configuration property.- INDIVIDUAL_PROPERTY : Logging is controlled by a specific configuration property for this persistence unit.Default value is TRUE . |
formatSQL |
ConfigurationMode |
Optional attribute formatSQL is used to control the style of the written SQL logs. Possible values are the same as for attribute showSQL .Default value is TRUE . |
For further information please refer to:
Generated by JEAF Generator