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 and Criteria Queries
PostPosted: Thu Aug 24, 2006 4:31 am 
Newbie

Joined: Mon May 29, 2006 6:14 am
Posts: 17
What is different between HQL and Criteria Queries. Where could be used HQL and Where could be used Criteria Queries.

(I think Criteria Queries is very easy for complex query?)

Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 3:04 pm 
Regular
Regular

Joined: Fri Aug 18, 2006 2:40 pm
Posts: 51
Location: Metz, France
Criteria:
cute & easy to maintain

HQL:
string concatenation & more powerful

IMHO, you can go far without being limited by the new Criteria API.
Give it a try, you will like it.

http://www.javalobby.org/articles/hibernatequery102/

_________________
Denis
Don't forget to rate ... thanks.


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.