-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate Logging Question
PostPosted: Tue May 10, 2011 5:48 pm 
Regular
Regular

Joined: Tue Oct 10, 2006 2:21 pm
Posts: 58
In the reference manual ( http://docs.jboss.org/hibernate/core/3. ... erence.pdf ), section 3.5 there is "table 3.9 Hibernate Log Categories"

In this table is listed "org.hibernate.type: Log all JDBC parameters".

What does this mean? I had assumed it meant it would show the values of query parameters, but enabling this in my logging configuration file does not do this.

With the following log4j configuarion
Code:
    <logger additivity="false" name="org.hibernate.SQL">
        <level value="DEBUG" />
        <appender-ref ref="HIBERNATE" />   
    </logger>
   
    <logger additivity="false" name="org.hibernate.type">
        <level value="DEBUG" />
        <appender-ref ref="HIBERNATE" />   
    </logger>


I see only SQL statements with "?" placeholders for the parameters.

What does the "org.hibernate.type" logging query really do and is there any way to see the values of query parameters?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.