-->
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: performance Criteria vs. HQL
PostPosted: Fri May 27, 2005 7:21 pm 
Newbie

Joined: Fri May 27, 2005 3:19 pm
Posts: 18
Hibernate 3

If I want to pull all data from a table without any conditions, would it make a difference to use HQL or Criteria(without any conditions) or something else?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 28, 2005 12:18 am 
Regular
Regular

Joined: Tue May 24, 2005 10:19 am
Posts: 65
in my tests, is equal(or diference is very low)...
from docs:
Quote:
Criteria is a simplified API for retrieving entities by composing Criterion objects. This is a very convenient approach for functionality like "search" screens where there is a variable number of conditions to be placed upon the result set.

Hibernate's query language is much more general and should be used for non-simple cases.


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.