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.
Asked
Active
Viewed 150 times
1 Answers
-1
can use this property and add to hibernate.cfg.xml
, for show all sql query:
<property name="hibernate.show_sql">true</property>

Mohammad Changani
- 474
- 3
- 11
-
Thanks for the reply but my question is different. The logs are already showing the sqls... – nish Jul 11 '13 at 13:51