Example usage for Java org.springframework.orm.jpa LocalContainerEntityManagerFactoryBean fields, constructors, methods, implement or subclass
The text is from its open source code.
void | afterPropertiesSet() |
DataSource | getDataSource() |
Map | getJpaPropertyMap() Allow Map access to the JPA properties to be passed to the persistence provider, with the option to add or override specific entries. |
EntityManagerFactory | getNativeEntityManagerFactory() |
EntityManagerFactory | getObject() Return the singleton EntityManagerFactory. |
String | getPersistenceUnitName() |
void | setBeanClassLoader(ClassLoader classLoader) |
void | setDataSource(DataSource dataSource) Specify the JDBC DataSource that the JPA persistence provider is supposed to use for accessing the database. |
void | setJpaDialect(@Nullable JpaDialect jpaDialect) Specify the vendor-specific JpaDialect implementation to associate with this EntityManagerFactory. |
void | setJpaProperties(Properties jpaProperties) Specify JPA properties, to be passed into Persistence.createEntityManagerFactory (if any). |
void | setJpaPropertyMap(@Nullable Map Specify JPA properties as a Map, to be passed into Persistence.createEntityManagerFactory (if any). |
void | setJpaVendorAdapter(@Nullable JpaVendorAdapter jpaVendorAdapter) Specify the JpaVendorAdapter implementation for the desired JPA provider, if any. |
void | setJtaDataSource(DataSource jtaDataSource) Specify the JDBC DataSource that the JPA persistence provider is supposed to use for accessing the database. |
void | setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver) Specify the Spring LoadTimeWeaver to use for class instrumentation according to the JPA class transformer contract. |
void | setMappingResources(String... mappingResources) Specify one or more mapping resources (equivalent to |
void | setPackagesToScan(String... packagesToScan) Set whether to use Spring-based scanning for entity classes in the classpath instead of using JPA's standard scanning of jar files with persistence.xml markers in them. |
void | setPersistenceProvider(@Nullable PersistenceProvider persistenceProvider) Set the PersistenceProvider instance to use for creating the EntityManagerFactory. |
void | setPersistenceProviderClass(Class extends PersistenceProvider> persistenceProviderClass) Set the PersistenceProvider implementation class to use for creating the EntityManagerFactory. |
void | setPersistenceUnitManager(PersistenceUnitManager persistenceUnitManager) Set the PersistenceUnitManager to use for obtaining the JPA persistence unit that this FactoryBean is supposed to build an EntityManagerFactory for. |
void | setPersistenceUnitName(@Nullable String persistenceUnitName) Uses the specified persistence unit name as the name of the default persistence unit, if applicable. |
void | setPersistenceUnitPostProcessors(PersistenceUnitPostProcessor... postProcessors) Set the PersistenceUnitPostProcessors to be applied to the PersistenceUnitInfo used for creating this EntityManagerFactory. |
void | setPersistenceXmlLocation(String persistenceXmlLocation) Set the location of the persistence.xml file we want to use. |
void | setSharedCacheMode(SharedCacheMode sharedCacheMode) Specify the JPA 2.0 shared cache mode for this persistence unit, overriding a value in persistence.xml if set. |
void | setValidationMode(ValidationMode validationMode) Specify the JPA 2.0 validation mode for this persistence unit, overriding a value in persistence.xml if set. |