ehcache « Default « JPA Q&A

1. default caching time when using hibernate

when using hibernate 2nd level cache and query cache and not specifying anything inside ehcache.xml .what is the default caching time?

2. Are native SQL queries cached by default when Hibernate query cache is turned on?

Using Hibernate 3.3.0 and ehcache 1.2.3 with 2nd level caching and query cache turned on, I realised that the following code was returning the same sequence number across multiple calls which ...