-->
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.  [ 2 posts ] 
Author Message
 Post subject: hql vs ejb-ql
PostPosted: Wed Dec 13, 2006 2:23 am 
Beginner
Beginner

Joined: Fri Jan 13, 2006 11:19 am
Posts: 24
i am planning to use hibernate 3.2 but i am very confusing with the hql and ejb-ql. Actually which one is used in EJB3 and how to configure which one is used for my project?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 13, 2006 4:09 am 
Regular
Regular

Joined: Sat May 20, 2006 3:49 am
Posts: 78
hello!

you have the choice of using hibernate-core (without entitymanager) or the ejb3 implementation hibernate-entitymanager.

both have advantages and disadvantages, with hibernate-core you are using plain-hibernate (session-factory, hibernate-query-language) with all the features hibernate offer. a change to another persistence framework could be harder, because you have to migrate all the code. if you use hibernate-entitymanager, you are using only the ejb3 interfaces (ejb-query-language) and could easier migrate to annother framework which is ejb3 compliant.

i am using hibernate-entitymanager, and I switch to hibernate-core programatically, when I need more features.

regards


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

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.