java - Hibernate: update - How to get the native SQL query -
is possible native sql query while executing update hibernate, using java language?
for example, have the
session.update(something); statement, , i'd retrieve string (or else) containing sql query behind update action.
i'd have effective query hibernate "sends" mysql.
you can. hibernate using log4j must set appropriate categories. are:
org.hibernate.sql debug
org.hibernate.type trace
see here: how print query string parameter values when using hibernate
Comments
Post a Comment