-->
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: Criteria/HQL queries
PostPosted: Mon Aug 27, 2007 1:36 pm 
Beginner
Beginner

Joined: Tue Aug 14, 2007 6:29 pm
Posts: 27
Location: chicago
Is their any major difference with respect to Performance in using Criteria vs HQL based queries?

I am considering Criteria based queries for my project as I faced issues to get HQL working fine.

I posted this already in forum but didn't get any hint so far. When I used HQL I am getting SessionFactory as null sometimes not always. In no place I am clearing sessionFactory. When I start jboss server sessionfactory gets created successfully.

Jboss : 4.0.3 / Postgres 8.2/ Hibernate 3.0.1 RC1


Thanks
Sun


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 1:26 am 
Regular
Regular

Joined: Wed Jun 20, 2007 1:53 am
Posts: 75
Sundar,
Yes. I feel execution time for criteria queries is costly than HQL. caz hibernate engine internally converts criteria queries into HQL.

I don't thing problem in creating session factory when executing HQL.


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.