Uses of Class
org.hibernate.jpa.HibernatePersistenceConfiguration
Packages that use HibernatePersistenceConfiguration
Package
Description
The packages in this namespace are responsible for implementing certain
requirements of the JPA specification, especially things which are only
needed when Hibernate is acting as a JPA persistence provider.
-
Uses of HibernatePersistenceConfiguration in org.hibernate.jpa
Methods in org.hibernate.jpa that return HibernatePersistenceConfigurationModifier and TypeMethodDescriptionHibernatePersistenceConfiguration.caching
(CachingType type) Enable or disable the second-level and query caches.HibernatePersistenceConfiguration.cachingAccessType
(AccessType type) If data caching is enabled, configure the type of concurrency access that should be applied if not explicitly specified on a cache region.HibernatePersistenceConfiguration.cachingCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for handling of proxies.HibernatePersistenceConfiguration.closedCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for handling around calls to EntityManager.close(), EntityManager.isOpen(), EntityManagerFactory.close() and EntityManagerFactory.isOpen()HibernatePersistenceConfiguration.collectStatistics
(boolean enabled) Configures whether Hibernate should collect Statistics.HibernatePersistenceConfiguration.defaultCatalog
(String catalogName) Configure a default catalog name to be used for database objects (tables, sequences, etc) which do not explicitly specify one.HibernatePersistenceConfiguration.defaultSchema
(String schemaName) Configure a default schema name to be used for database objects (tables, sequences, etc) which do not explicitly specify one.HibernatePersistenceConfiguration.globalGeneratorCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for in terms of collecting all named value generators globally, regardless of location.HibernatePersistenceConfiguration.jdbcCredentials
(String username, String password) Username and password for non-DataSource
JDBC connection.HibernatePersistenceConfiguration.jdbcDriver
(String driverName) JDBC driver class name for non-DataSource
connection.HibernatePersistenceConfiguration.jdbcPassword
(String password) Password for non-DataSource
JDBC connection.JDBC URL of non-DataSource
JDBC connection.HibernatePersistenceConfiguration.jdbcUsername
(String username) Username for non-DataSource
JDBC connection.HibernatePersistenceConfiguration.jtaDataSource
(String dataSourceJndiName) HibernatePersistenceConfiguration.loadByIdCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for the allowed type of identifier value passed toEntityManager.getReference(java.lang.Class<T>, java.lang.Object)
andEntityManager.find(java.lang.Class<T>, java.lang.Object)
HibernatePersistenceConfiguration.managedClass
(Class<?> managedClass) HibernatePersistenceConfiguration.managedClasses
(Class<?>... managedClasses) Add the specified classes as managed classes.HibernatePersistenceConfiguration.managedClasses
(Collection<Class<?>> managedClasses) Add the specified classes as managed classes.HibernatePersistenceConfiguration.mappingFile
(String name) HibernatePersistenceConfiguration.mappingFiles
(String... names) Add the specified resource names as mapping files.HibernatePersistenceConfiguration.mappingFiles
(Collection<String> names) Add the specified resource names as mapping files.HibernatePersistenceConfiguration.nationalizedCharacterData
(boolean enabled) Configure a default schema name to be used for database objects (tables, sequences, etc) which do not explicitly specify one.HibernatePersistenceConfiguration.nonJtaDataSource
(String dataSourceJndiName) HibernatePersistenceConfiguration.orderByMappingCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for the interpretation ofOrderBy
.HibernatePersistenceConfiguration.properties
(Map<String, ?> properties) HibernatePersistenceConfiguration.proxyCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for handling of proxies.HibernatePersistenceConfiguration.queryCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for all aspects of Query handling.HibernatePersistenceConfiguration.schemaToolingAction
(Action action) Specify the action to take in terms of automatic database schema tooling.HibernatePersistenceConfiguration.sharedCacheMode
(SharedCacheMode sharedCacheMode) HibernatePersistenceConfiguration.showSql
(boolean showSql, boolean formatSql, boolean highlightSql) Enables SQL logging to the console.HibernatePersistenceConfiguration.statementInspector
(Class<? extends StatementInspector> inspectorImpl) Specify a StatementInspector to be applied to all Sessions/EntityManagersHibernatePersistenceConfiguration.statementInspector
(StatementInspector inspector) Specify a StatementInspector to be applied to all Sessions/EntityManagersHibernatePersistenceConfiguration.transactionCompliance
(boolean enabled) Specifies whether Hibernate will strictly adhere to compliance with Jakarta Persistence for all aspects of transaction handling.HibernatePersistenceConfiguration.transactionType
(PersistenceUnitTransactionType transactionType) HibernatePersistenceConfiguration.validationMode
(ValidationMode validationMode) HibernatePersistenceConfiguration.xmlMappings
(boolean enabled) Configures whether Hibernate should process XML mappings (orm.xml
files).HibernatePersistenceConfiguration.xmlValidation
(boolean enabled) Configures whether Hibernate should validate (via schema descriptor) XML files.