-->
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: Logging Sql
PostPosted: Sun May 23, 2004 6:08 pm 
Regular
Regular

Joined: Mon Nov 03, 2003 6:10 am
Posts: 75
I tried looking around the forum for this, but didn't seem much.

Someone statedt that in order to get the sql and values as executed you would have to use some type of driver wrapper.

Is this stil the case or is there an easier way?

Just interested in getting either:

1) prepared statements with array of parameter values
2) actual sql with values vs '?' placeholders

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 9:11 pm 
Newbie

Joined: Fri Mar 05, 2004 4:53 am
Posts: 5
Location: Beijing
the sql statement could be displayed by set the show-sql property to 'true' in your hibernate configuration properties/xml file.

and the actual value of parameters...well i remember somebody said that you can show it by setup log4j.properties properly, you can give it a search in the forum.


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.