-->
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: how to display all database queries? show_sql doesn't
PostPosted: Wed Jan 07, 2009 6:00 am 
Newbie

Joined: Sun Dec 07, 2008 1:29 pm
Posts: 6
Hi,

Is there any way to have the Hibernate reference resolution display all the underlying queries?

e.g.

Customer <>-------- one-to-many -----* Order
(a Customer has many Orders)

If you retrieve a Customer and access its orders collection I would like to see those queries too.

show_sql only seem to display named queries ...

TIA,
Best regards,
Giovanni


Top
 Profile  
 
 Post subject: Re
PostPosted: Wed Jan 07, 2009 8:32 am 
Beginner
Beginner

Joined: Wed Nov 26, 2008 1:02 am
Posts: 22
hi,
show_sql is the option to see queries,


hibernate.show_sql :Write all SQL statements to console. This is an alternative to setting the log category org.hibernate.SQL to debug.
eg. true | false

_________________
if it solves,rate me


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.