Spring JPA Hibernate - Properties
15 Aug 2017
Initialize properties
HibernateJpaAutoConfiguration
super class JpaBaseConfiguration
enables JpaProperties
JpaProperties
fetch all spring.jpa.hibernate.*
or spring.jpa.properties.hibernate.*
into a map
entityManagerFactoryBuilder
initialize EntityManagerFactoryBuilder
with properties above
EntityManagerFactoryBuilder
put properties into JpaPropertyMap
Initialize bean with properties
JpaBaseConfiguration.entityManagerFactory
build LocalContainerEntityManagerFactoryBean
LocalContainerEntityManagerFactoryBean
call buildNativeEntityManagerFactory
- then call
createNativeEntityManagerFactory
SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory
create EntityManagerFactoryBuilderImpl
StandardServiceRegistry
create StandardServiceRegistryBuilder
and build StandardServiceRegistryImpl
EntityManagerFactoryBuilderImpl
pass properties into ssrBuilder.build()
via configurationValues
StandardServiceRegistryBuilder
create bunch of initiators, such as: BatchBuilderInitiator
comments powered by