-->
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: multiple sql select query generated from single HQL query!
PostPosted: Thu Apr 26, 2007 2:44 pm 
Newbie

Joined: Fri Oct 07, 2005 12:34 am
Posts: 5
HI.

I have a HQL select query in my project

I wanted to see the generted SQL query.......so i put show_sql=true in hibernate-config.xml file in my project .


but the generted query displayed in the console are having huge select queries !! where from so many generated select query came from whereas i had only one HQL in the hibernate side ?

and as a result i am confused with the conversion of select HQL query to SQL select query ....is it one : many ?

can you explain this with any example


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 1:32 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Could you show us which HQL query you're issuing and put the SQL you think is generated for this sole hql query?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.