- 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 ElementDescriptionbooleanWhether the namedData.PersistenceUnitis 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.PersistenceUnitis required.- Returns:
- value of
truewhen thenamedData.PersistenceUnitis required,falseotherwise, to use the default configuration if a named one is not available
- Default:
true
-