-->
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 display query parameters in JPA Hibernate.
PostPosted: Fri Aug 23, 2013 10:10 am 
Newbie

Joined: Fri Aug 23, 2013 9:56 am
Posts: 1
I'm using JPA Hibernate. Configuring the parameters in persistence.xml and using log4j.properties.
Can some one tell how to how to show the query parameters in the above environment.

Already tried
log4j.appender.org.hibernate.type=info
<property name="hibernate.type" value="info"/>
but did not get fruitful results.


Top
 Profile  
 
 Post subject: Re: How to display query parameters in JPA Hibernate.
PostPosted: Wed Nov 13, 2013 7:49 am 
Newbie

Joined: Wed Nov 13, 2013 7:05 am
Posts: 2
Add this logger:

<logger name="org.hibernate.type">
<level value="trace"/>
<appender-ref ref="console" />
</logger


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.