In 6.0 we changed the query cache structure so that it contains all the data, whereas in 5.x a cache value for an entity stored only the PK value. Both approaches have advantages and disadvantages, so we should try to provide a way to configure how the cache for an entity should be structured.
When we have that, we should enable the test {{org.hibernate.orm.test.jpa.query.CachedQueryTest#testCacheableQuery}}
We should always use the shallow layout for entities/associations that use reference caching. |
|