How can I debug a query built with JPA 2.0
CriteriaBuilder
? Is there a way to print out the query that is being executed?
I am developing a web application using NetBeans
, MySql
, GlassFish
. I would avoid starting MySql in debug mode, because it is used also for other applications. JPA provider is EclipseLink
.