Mike Zhao (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYmZlNWZlMzFl...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16684?atlOrigin=eyJpIjoiYmZlNW...
) HHH-16684 (
https://hibernate.atlassian.net/browse/HHH-16684?atlOrigin=eyJpIjoiYmZlNW...
) Query cache with entity having enum and custom converter throws SerializerException (
https://hibernate.atlassian.net/browse/HHH-16684?atlOrigin=eyJpIjoiYmZlNW...
)
Change By: Mike Zhao (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Caching query results in a spring JPA repository using query-hint, hibernate throws
SerializerException when the entity involved has Enum field and a customer converter. In
org.hibernate.cache.spi.QueryKey there is a field
org.hibernate.transform.CacheableResultTransformer which is not transient. It seems like
this field is causing the exception.
ehcach.xml (note that there are far less entries than 1000 as configured)
{code:xml}<config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.ehcache.org/v3"
xmlns:jsr107="http://www.ehcache.org/v3/jsr107"
xsi:schemaLocation="
http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd
http://www.ehcache.org/v3/jsr107
http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd">
<service>
<jsr107:defaults enable-management="true"
enable-statistics="true"/>
</service>
<!-- cache eternal unless updated, i.e. no TTL from cache manager itself -->
<cache-template name="simple">
<expiry>
<none/>
</expiry>
<heap unit="entries">1000</heap>
</cache-template>
<cache alias="org.hibernate.cache.internal.StandardQueryCache"
uses-template="simple"/>
<cache alias="org.hibernate.cache.spi.TimestampsCache"
uses-template="simple"/>
</config>{code}
(
https://hibernate.atlassian.net/browse/HHH-16684#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16684#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:2b972a1 )