DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 02/Apr/12 05:07 PM
SVN trunk has this

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