1

I am printing the sql query in the log by the setting the log level as debug for the hibernate.sql package. there are few queries which are being shown in the logs are from the entity which is using the caching "@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)" on the entity. My question is will the logs show the query even if the entity is cached or it shows the query because the entity is not being cached.

nish
  • 11
  • 2

1 Answers1

-1

can use this property and add to hibernate.cfg.xml, for show all sql query:

<property name="hibernate.show_sql">true</property>
  • Thanks for the reply but my question is different. The logs are already showing the sqls... – nish Jul 11 '13 at 13:51