Issue Details (XML | Word | Printable)

Key: NUCCORE-1077
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

L2 Cache : cater for caching of TreeSet/TreeMap when using composite id - need CachedId to be Comparable, or store in HashMap

Created: 31/Oct/13 05:52 PM   Updated: 14/Jan/14 11:22 AM   Resolved: 14/Jan/14 10:52 AM
Component/s: Cache
Affects Version/s: None
Fix Version/s: 3.2.12


 Description  « Hide
When trying to store a TreeSet/TreeMap field with a composite id currently we get a message like

Unable to create object of type org.datanucleus.store.types.backed.TreeSet for L2 caching :
java.lang.ClassCastException: org.datanucleus.cache.CachedPC$CachedId cannot be cast to java.lang.Comparable

Andy Jefferson made changes - 31/Oct/13 05:57 PM
Field Original Value New Value
Summary L2 Cache : cater for caching of TreeSet/TreeMap - need CachedId to be Comparable, or store in HashMap L2 Cache : cater for caching of TreeSet/TreeMap when using composite id - need CachedId to be Comparable, or store in HashMap
Description When trying to store a TreeSet/TreeMap field currently we get a message like

Unable to create object of type org.datanucleus.store.types.backed.TreeSet for L2 caching :
java.lang.ClassCastException: org.datanucleus.cache.CachedPC$CachedId cannot be cast to java.lang.Comparable
When trying to store a TreeSet/TreeMap field with a composite id currently we get a message like

Unable to create object of type org.datanucleus.store.types.backed.TreeSet for L2 caching :
java.lang.ClassCastException: org.datanucleus.cache.CachedPC$CachedId cannot be cast to java.lang.Comparable
Andy Jefferson added a comment - 14/Jan/14 10:52 AM
GitHub master now makes CachedId implement Comparable<CachedId> so we can save SortedSet/SortedMap fields in the L2 cached

Andy Jefferson made changes - 14/Jan/14 10:52 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.2.12 [ 12074 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 14/Jan/14 11:22 AM
Status Resolved [ 5 ] Closed [ 6 ]