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)

Key: NUCCORE-436
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dave L
Votes: 0
Watchers: 0

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

Support for persisting fields of type EnumSet/EnumMap

Created: 31/May/06 06:37 PM   Updated: 11/Jun/10 01:38 PM   Resolved: 02/Jun/10 10:12 AM
Component/s: Java Types
Affects Version/s: None
Fix Version/s: None

 Description  « Hide
Add native support for EnumSet and EnumMap.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 07/Sep/09 08:04 AM
Could easily be provided by a plugin hence is doable by users, so downgrading to Minor

Andy Jefferson added a comment - 29/May/10 10:11 AM
EnumSet and EnumMap seem to be non-extensible. They don't provide *any* constructor from which we can extend, hence I fail to see how this can be done

Andy Jefferson added a comment - 02/Jun/10 10:12 AM
Declare the set/map as Set/Map and instantiate as an EnumSet/EnumMap. This means it will use the handler for Set or Map and so be persistable, and besides which your code would look a lot better by using interface types as the declared type