| A few practical things to note in this change:
- org.hibernate.mapping.PersistentClass#getCacheConcurrencyStrategy is no longer a proper way to check whether an entity is cached. org.hibernate.mapping.PersistentClass#isCached should be used instead. The reason being that we need to apply the @Cache values (explicit or implicit) to PersistentClass even if the root is not cached in case a subclass enables caching.
- This also means that an entity is no longer cached just by calling org.hibernate.mapping.PersistentClass#setCacheConcurrencyStrategy. Instead org.hibernate.mapping.PersistentClass#isCached(true) should be called.
- EntityPersister#hasCache has been deprecated and split in to EntityPersister#canReadFromCache and EntityPersister#canWriteToCache
|