Hibernate-4 show SQL code that is generated
问题 I created a Maven project in my eclipse IDE and trying to write simple hibernate program. But I am not able to see the final query that is generated by hibernate which also includes the bind parameters. I also followed the post mentioned here : Hibernate show real SQL , but it did not help. I have below configurations: In my hibernate.cfg.xml file I have: <property name="show_sql">true</property> <property name="format_sql">true</property> <property name="use_sql_comments">true</property> I