-->
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.  [ 7 posts ] 
Author Message
 Post subject: How do I print the values hibernate is inserting ?
PostPosted: Fri Mar 26, 2004 9:04 am 
Beginner
Beginner

Joined: Wed Mar 17, 2004 12:44 am
Posts: 25
Hello folks,

Is there any way out with which I could know the values hibernate is inserting ?

nitin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 9:31 am 
Beginner
Beginner

Joined: Tue Jan 27, 2004 8:33 am
Posts: 29
give a look at p6spy


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 10:07 am 
Beginner
Beginner

Joined: Wed Mar 17, 2004 12:44 am
Posts: 25
I installed the p6spy but cannot run. I am using spring framework with hibernate. Using connection factory of spring framework. Logically speaking there should not be any problem. But there is ..

Exception :
WARN [main] JDBCExceptionReporter.logExceptions(38) | SQL Error: 0, SQLState: null
ERROR [main] JDBCExceptionReporter.logExceptions(46) | Cannot create JDBC driver of class 'com.p6spy.engine.spy.P6SpyDriver' f
or connect URL 'jdbc:oracle:oci8:@username'

nitin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 10:18 am 
Beginner
Beginner

Joined: Wed Mar 17, 2004 12:44 am
Posts: 25
oh sorry .. m using commons dbcp.. from apache..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 10:34 am 
Beginner
Beginner

Joined: Tue Jan 27, 2004 8:33 am
Posts: 29
This is more a p6spy question than a Hibernate question...
Anyway check the name of the driver into p6spy config and check
that you added the p6spy lib to the classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 3:38 pm 
Regular
Regular

Joined: Tue Aug 26, 2003 3:09 pm
Posts: 58
I believe this information is logged at the DEBUG level. Just configure log4j (or whatever you use for logging).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 3:40 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
### log just the SQL
log4j.logger.net.sf.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=debug

_________________
Emmanuel


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