]
Adam Warski resolved HHH-5025.
------------------------------
Resolution: Fixed
Fix Version/s: 4.0.0.Beta1
3.6.5
Support caching audit queries using ehcache's DiskStore.
--------------------------------------------------------
Key: HHH-5025
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5025
Project: Hibernate Core
Issue Type: Improvement
Components: envers
Reporter: Brent Worden
Assignee: Lukasz Antoniak
Priority: Minor
Fix For: 3.6.5, 4.0.0.Beta1
Enabling audit query caching with a ehcache cache configured as persisting to disk or
overflowing to disk. For example,
<defaultCache diskPersistent="true" eternal="false"
maxElementsInMemory="1000" maxElementsOnDisk="10000"
overflowToDisk="true" timeToIdleSeconds="300"
timeToLiveSeconds="3600" />
Results in the following exception:
java.io.NotSerializableException: org.hibernate.envers.entities.RevisionTypeType
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
The lack of needed serialization prohibits the use of ehcache's DiskStore.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: