Issue Details (XML | Word | Printable)

Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 1

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

Support Enum persisted as numeric

Created: 02/Apr/12 05:06 PM   Updated: 27/Jun/12 07:37 AM   Resolved: 02/Apr/12 05:07 PM
Component/s: Persistence, Queries
Affects Version/s: None
Fix Version/s: 3.1.0.m2

 Description  « Hide
Currently only persist as String form

Andy Jefferson added a comment - 02/Apr/12 05:07 PM
SVN trunk has this

Andy Jefferson made changes - 02/Apr/12 05:07 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 06/Apr/12 05:54 PM
Status Resolved [ 5 ] Closed [ 6 ]
Yevgeny Shakhnovich added a comment - 27/Jun/12 12:19 AM
Actually, it is not resolved. I can persist Enum as numeric but I cannot read it. The exception is
Application exception overridden by rollback exception: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at [datanucleus-hbase-3.1.0-m3.jar:]
at org.datanucleus.state.AbstractStateManager.replacingObjectField( [datanucleus-core-3.1.0-m4.jar:]

Andy Jefferson added a comment - 27/Jun/12 07:37 AM
Actually it is resolved, and indeed there is a test that verifies that, in SVN trunk. If you have something different then the process is that you actually provide a testcase that demonstrates something