Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » SQL statement that createNamedQuery(...) method sent to the database?
SQL statement that createNamedQuery(...) method sent to the database? [message #385460] Wed, 11 February 2009 12:25 Go to previous message
Eclipse UserFriend
Hi there,


How do I get the SQL statement that createNamedQuery(...) method sent to
the database?


For debugging purpose, I want to write a log file the SQL statement that
createNamedQuery method sent to the database in order to trace-out what
SQL statement has been sent to the database.

Example:

Query query = em.createNamedQuery("getUserByName");

log.debug(???) What was the SQL statement?


Thanks
Mohamed
 
Read Message
Read Message
Previous Topic:NPE on concurrent entity manager access
Next Topic:Persisting thousands of files
Goto Forum:
  


Current Time: Wed Jul 23 05:28:00 EDT 2025

Powered by FUDForum. Page generated in 0.03130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top