-->
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.  [ 3 posts ] 
Author Message
 Post subject: Differnce in using HQL , Criteria API and SQL
PostPosted: Wed Apr 30, 2008 1:19 am 
Newbie

Joined: Tue Apr 22, 2008 9:03 am
Posts: 2
Hi,

I am using Hibernate and want to evaluate which is the better mechanism for database interaction out of HQL, SQL and Criteria API.
I want to evaluate above three scenarios on below points.

1. Speed / execution time.
2. Ease of use
3. Complex queries suppport
4. Cache support.

Thanks in advance.

Neeraj Yadav.

_________________
Thanks & Regards,
Neeraj Yadav


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 1:46 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Use criteria if your queries are complex and you require to build the query on runtime.

_________________
Sukirtha


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 2:09 am 
Newbie

Joined: Tue Apr 22, 2008 9:03 am
Posts: 2
Hi Sukirtha,

I found that for complex queries HQL is used, still i am not able to figure out the best approach for fetching data.
Can you please send me the difference in the 3 approaches.

Thanks in advance.

Regards,
Neeraj.

_________________
Thanks & Regards,
Neeraj Yadav


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.