Joined: Mon Apr 20, 2015 11:48 am Posts: 1
|
Hello, I am a new user of hibernate. I went through lot of forms and got configuration to run my project . But still after lot of search and reading through google i am still unable to understand the underlying concept. All this different types of configurations started to confuse me
Here is my problem in mind
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 EntityManger or implements it . And non of hibernate beens 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 not specified
please some one help me with this . .I have self studied and not been thought by anyone about this before.
|
|