-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate-entitymanager vs hibernate-jpa2.1 which to use
PostPosted: Mon Apr 20, 2015 12:25 pm 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.