-->
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.  [ 3 posts ] 
Author Message
 Post subject: capture generated query parameters values at runtime
PostPosted: Mon Feb 12, 2007 7:52 am 
Newbie

Joined: Fri Sep 17, 2004 1:05 pm
Posts: 10
Hi, I must to get the generated query parameters values at runtime when into the application use the methods session.save or session.saveOrUpdate
some body could help me please.

Thanks a lot in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 12, 2007 12:15 pm 
Newbie

Joined: Thu Mar 03, 2005 3:25 pm
Posts: 5
I use something called P6Spy (see http://www.p6spy.com/). It acts as a proxy between your application (e.g. hibernate) and the actual database driver and writes log information to a spy.log file. The log includes the original queries, the queries with substituted parameters and return values.

You can use this for diagnotics and understanding performance. See the p6 spy docs for how to set it up.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 13, 2007 5:01 am 
Newbie

Joined: Fri Sep 17, 2004 1:05 pm
Posts: 10
thanks but not resolve the problem, we need to audit sql query by application user in real time, then need get the sql query, query parameters and user that execute the sql's at runtime and with hibernate is impossible for us do it in some cases


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.