2

I work in mysql, and using hibernate criteria to build query. But I don't know how to get sql query from that criteria, so any one can help me, that could be grate, many thanks ?

tungosper

1 Answers1

3

Just go to hibernate config.xml and add

<property name="show_sql">true</property>

You can see SQL query in your console after executing criteria or any hibernate query now.

Blackbam
  • 17,496
  • 26
  • 97
  • 150
Pradip Wawge
  • 133
  • 4