-->
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: Queries - HQL, SQL, Hibernate
PostPosted: Fri Nov 17, 2006 2:31 am 
Newbie

Joined: Thu Apr 27, 2006 9:56 am
Posts: 14
Location: Hyderabad
Hi

I need pros and cons on using

HQL Queries
SQl Queries
Criteria

Also the performance on using the above.

Thanks & Regards
Ramadevi K


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 8:38 am 
Beginner
Beginner

Joined: Thu Aug 24, 2006 6:01 am
Posts: 49
Location: sophia-antipolis, France
I use a mix of HQL and SQL. For some complicated queries, I want to load objects with multiple collections in one single query. With Hibernate, I'm stuck with loading only one collection in one query. But mostly I use HQL. I haven't used Criteria, mostly because I wanted to put all my queries in an XML file so they were easy to see.

I found this blog interesting:
http://www.i-proving.ca/space/Technologies/Hibernate/SQL+vs+HQL+with+the+Session+Cache

and


http://blog.hibernate.org/cgi-bin/blosxom.cgi/2006/03/17/


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.