Nemanja Jovanovic (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMTdjZWRkYmQw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16714?atlOrigin=eyJpIjoiMTdjZW...
) HHH-16714 (
https://hibernate.atlassian.net/browse/HHH-16714?atlOrigin=eyJpIjoiMTdjZW...
) Caching does not work properly when hibernate.cache.use_structured_entries is turned on
(
https://hibernate.atlassian.net/browse/HHH-16714?atlOrigin=eyJpIjoiMTdjZW...
)
Issue Type: Bug Assignee: Unassigned Created: 29/May/2023 09:05 AM Environment: Hibernate
6.2.3.Final (core and jcache), Adoptium 17 JDK, HSQLDB (Used in test case) Priority: Major
Reporter: Nemanja Jovanovic (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When hibernate.cache.use_structured_entries is set to true, entities that have superclass
are not properly put in cache. Problem is in
org.hibernate.sql.results.graph.entity.AbstractEntityInitializer.putInCache , structure
from superclass is used for storing cache entry, instead of structure from entity that
should be put in cache. This is only a problem when hibernate.cache.use_structured_entries
is set to true (see org.hibernate.cache.spi.entry.StructuredCacheEntry.structure vs
org.hibernate.cache.spi.entry.UnstructuredCacheEntry.structure ). Gradle test case
attached.
(
https://hibernate.atlassian.net/browse/HHH-16714#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16714#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:da60ad2 )