-->
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 make hibernate to show sql with values in the log
PostPosted: Fri Sep 21, 2007 9:43 pm 
Newbie

Joined: Fri Sep 21, 2007 9:39 pm
Posts: 1
Hi,
I have configured hibernate.show_sql=true, but in the logs i see the sql statements printed like

Hibernate: update XX_TABLE
set column1=?, column2=?
where column3=?

How the configure hiberbate so that it shows the actual values instead of ? marks in the query.

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 23, 2007 8:34 am 
Newbie

Joined: Tue Jul 24, 2007 9:36 am
Posts: 2
Location: Bangalore
Try settingthe below property in your log4j properties file
log4j.logger.org.hibernate.SQL = debug


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.