-->
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: To view the values of the parameters of each hibernate query
PostPosted: Fri Sep 04, 2009 3:38 am 
Newbie

Joined: Fri Sep 04, 2009 3:28 am
Posts: 1
Hi,

I am running an application in Websphare 6.1 server, this application uses hibernate to interact with database (Oracle).
After enabling show_sql=true, I am able to see the queries in the server logs. But these queries doesn't display the values passed to the database; they only show '?', when there is parameter involved.


Can anybody suggest for some tools or any mechanism to see the values of the parameters too.

Thanx in advance
Subhendu


Top
 Profile  
 
 Post subject: Re: To view the values of the parameters of each hibernate query
PostPosted: Thu Sep 10, 2009 3:55 am 
Senior
Senior

Joined: Fri May 08, 2009 12:27 pm
Posts: 168
Hibernate has extensive logging facilities; I dimly recall there's a setting to make it log parameter values, too.
A nonobvious keyword for googling might be "prepared" (as in "prepared query").


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.