How do I configure hibernate?
If hibernate-entitymanager package is used for JPA then what good is of hibernate-jpa package. And I have seen that they use org.hibernate.ejb.HibernatePersistence
class is used for JPA provider in persistence.xml which is in hibernate-entitymanager package.
In some cases, I have not seen the provider tag in persistence.xml
. In this case which class is used?. Does Session
class has EntityManager
or implements it . And none of hibernate beans are specified in Spring-application context file directly. Instead spring.orm
packages are used. So spring framework picks which class for JPA functionality.
org.springframework.orm.jpa.LocalEntityManagerFactoryBean
picks which bean if provider tag is specified and if provider tag is not specified which bean is picked?