-->
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 show sql parameter values
PostPosted: Sun Aug 04, 2013 4:12 am 
Newbie

Joined: Sun Aug 04, 2013 4:04 am
Posts: 1
Execuse me, i am a new learner of hibernate.
i have set the show_sql property = true. however, it just logged the plain sql :
insert into Student (SNO, SNAME, SEX, BIRTHDAY, MEMO, SID) values (?, ?, ?, ?, ?, ?)

How can i log the values that are binded to the "?" ?

thx very much


Top
 Profile  
 
 Post subject: Re: How to show sql parameter values
PostPosted: Thu Aug 22, 2013 4:37 am 
Beginner
Beginner

Joined: Wed Feb 06, 2013 2:43 am
Posts: 46
You have to configure log4j with your hibernate as in .

You can follow from here :
http://www.mkyong.com/hibernate/how-to-display-hibernate-sql-parameter-values-log4j/

Let me know if you are facing any issues.

_________________
Thanks,
Ajit Singh
ajits@mindfiresolutions.com
www.mindfiresolutions.com


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.