-->
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 get the SQL-Statement
PostPosted: Mon Oct 24, 2005 10:13 am 
Newbie

Joined: Mon Oct 24, 2005 10:04 am
Posts: 1
Hello,

is there a chance to get the full SQL-Statement which Hibernate runs against the Database when it persists an Object? The PreparedStatement and the values are logged but i`m looking for the complete Statement in my Application, because I want send it to another Database which should execute it.

Thanks for comments,
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 10:27 am 
Regular
Regular

Joined: Fri Sep 30, 2005 6:15 am
Posts: 50
Hi,

I got excatly the same question few days ago...so I can reply...
But unfortunately it's not possible, with hibernate you can just see the prepared statement and value for each parameter...then reconstruct your query...but it's quite complicated for nothing...

Someone, indicates the following tool...I haven't tried yet because I have other problem but If you try please let's your comment on it here....if you have any problem I can install it and try with you...

http://www.p6spy.com/

Hope it helps!


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.