Is it possible to get the native SQL query while executing an UPDATE from Hibernate, using Java language?
For example, I have the
session.update(something);
statement, and I'd like to retrieve a String
(or something else) containing the SQL query behind the UPDATE action.
I'd like to have the effective query that Hibernate "sends" to MySQL.