[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5025) Support caching audit queries using ehcache's DiskStore.

Brent Worden (JIRA) noreply at atlassian.com
Mon Mar 22 10:03:32 EDT 2010


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
            Priority: Minor


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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list