Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

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.

Note

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: