-->
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.  [ 4 posts ] 
Author Message
 Post subject: Show the insert/update/delete sql on log?
PostPosted: Sun Jul 29, 2007 9:38 pm 
Newbie

Joined: Wed Jan 31, 2007 9:55 pm
Posts: 16
I just wonder is it possible to show only the insert/update/delete (not select) sql statements with values on log file?

I'm just interested in those statements for error tracing or rebuilding the database.

Thanks!


Top
 Profile  
 
 Post subject: SQL SPy
PostPosted: Mon Jul 30, 2007 3:17 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Hi,

Have you try SPY sql driver which wrapps your sql requests and allows you to configure a spy ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 5:36 am 
Newbie

Joined: Wed Jan 31, 2007 9:55 pm
Posts: 16
can HibernateInception can do so if I'm using spring 2 + hibernate 3?

thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 6:18 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Mullin,

You mean HibernateInterception ? sure you could...

But this is direct: just put
Code:
jdbc.driverClassName = com.p6spy.engine.spy.P6SpyDriver

in your environment.properties file, and run you app!

you then will have a SPY.LOG file where you model sits.


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