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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -