Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log SQL Statements from Hibernate

Status
Not open for further replies.

ekler007

Programmer
Joined
Mar 13, 2007
Messages
1
Location
BR
Hi...

I'm with a problem. I'm trying to caputure SQL query generated by Hibernate from console. I tried to get SQL query using log4j on log4j.properties setting this properties:
log4j.logger.org.hibernate.SQL=DEBUG, SQL_APPENDER
log4j.additivity.org.hibernate.SQL=false

But i don´t have success.


Anybody can help me?!
:)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top