Uses of Class
jakarta.persistence.PersistenceConfiguration
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
SPI for Jakarta Persistence providers
-
Uses of PersistenceConfiguration in jakarta.persistence
Modifier and TypeMethodDescriptionPersistenceConfiguration.jtaDataSource
(String dataSourceJndiName) Specify the JNDI name of a JTAjavax.sql.DataSource
.PersistenceConfiguration.managedClass
(Class<?> managedClass) PersistenceConfiguration.mappingFile
(String name) Add the path of an XML mapping file loaded as a resource to the configuration.PersistenceConfiguration.nonJtaDataSource
(String dataSourceJndiName) Specify the JNDI name of a non-JTAjavax.sql.DataSource
.PersistenceConfiguration.properties
(Map<String, ?> properties) Set multiple properties of this persistence unit.Set a property of this persistence unit.Specify the persistence provider.PersistenceConfiguration.sharedCacheMode
(SharedCacheMode sharedCacheMode) Specify the shared cache mode for the persistence unit.PersistenceConfiguration.transactionType
(PersistenceUnitTransactionType transactionType) Specify the transaction type for the persistence unit.PersistenceConfiguration.validationMode
(ValidationMode validationMode) Specify the validation mode for the persistence unit.Modifier and TypeMethodDescriptionstatic EntityManagerFactory
Persistence.createEntityManagerFactory
(PersistenceConfiguration configuration) Create and return anEntityManagerFactory
for the named persistence unit, using the given properties. -
Uses of PersistenceConfiguration in jakarta.persistence.spi
Modifier and TypeMethodDescriptionPersistenceProvider.createEntityManagerFactory
(PersistenceConfiguration configuration) Called byPersistence
class when anEntityManagerFactory
is to be created.