-->
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.  [ 5 posts ] 
Author Message
 Post subject: Show complete SQL
PostPosted: Tue Oct 26, 2004 10:20 am 
Newbie

Joined: Wed Sep 15, 2004 9:35 am
Posts: 13
Hi,
I want to see the complete sql statements in the log file with all of it values.

<property name="show_sql">true</property>
doesn't show the values wich are used in the sql statement.
is there a way to show the values?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 11:07 am 
Newbie

Joined: Tue Sep 28, 2004 4:19 am
Posts: 4
if you are using log4j you should have configuration file named logger.properties or sth like this. you should have such line in this file:
log4j.logger.net.sf.hibernate = DEBUG


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 11:09 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
note that this will not do what you are asking which is to see the values passed into the placeholders, it will just give you some lower level debugging.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 3:15 pm 
Newbie

Joined: Mon Sep 27, 2004 9:40 am
Posts: 11
Location: Ostrava, Czech Republic
or use can try P6Spy, it's supposed to be put between your application and database and logs complete statement being sent to database plus some statistics.
It doesn't support all hibernate features (ie. I couldn't get it to work with select-before-update), but generally it's very useful...

for more info see http://www.p6spy.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2004 4:59 pm 
Beginner
Beginner

Joined: Thu Sep 11, 2003 12:53 pm
Posts: 23
Check your JDBC driver docs, too. MySQL Connector/J has some logging options, for example.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.