-->
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: View data values in generate SQL for show_sql=true
PostPosted: Thu Apr 21, 2005 6:15 pm 
Newbie

Joined: Tue Apr 19, 2005 4:32 pm
Posts: 14
How can I see the actual values in the generated SQL instead of the '?' when using show_sql=true?


Top
 Profile  
 
 Post subject: Re: View data values in generate SQL for show_sql=true
PostPosted: Thu May 05, 2005 3:26 am 
Newbie

Joined: Thu May 05, 2005 3:12 am
Posts: 1
skewed wrote:
How can I see the actual values in the generated SQL instead of the '?' when using show_sql=true?


AFAIK, you can't with show_sql=true. However, there are other ways:

    Use log4j, set net.sf.hibernate.SQL=debug and net.sf.hibernate.type=debug (as far as I remember from memory)
    Better yet: use p6spy as the JDBC driver for hibernate. This will generate a CSV-File, which contains alls the statements send to the "real" database


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.