- Enclosing class:
Data
Repository persistence unit name.
This is an optional repository annotation.
When used, the persistence unit name will be used to lookup appropriate instance of configured
data.persistence-units
to handle this repository.
This is useful when multiple databases are used from a single application.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Whether the namedData.PersistenceUnit
is required.
-
Element Details
-
value
String valueName of a named persistence unit. When using configuration, this is expected underdata.persistence-units.provider-type
, where provider-type is the provider of the persistence unit (such asjakarta
).- Returns:
- the name
-
required
boolean requiredWhether the namedData.PersistenceUnit
is required.- Returns:
- value of
true
when thenamed
Data.PersistenceUnit
is required,false
otherwise, to use the default configuration if a named one is not available
- Default:
true
-