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
Operations

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.
  

Andy Jefferson made changes - 07/Apr/07 07:42 AM
Field Original Value New Value
Assignee JPOX Administrator [ admin ]
Andy Jefferson made changes - 31/Oct/07 02:58 PM
Fix Version/s 1.3.0 [ 10264 ]
Andy Jefferson made changes - 29/May/08 08:27 AM
Fix Version/s 1.2.3 [ 10264 ]
Andy Jefferson made changes - 15/Jul/08 08:34 AM
Project JPOX Java5 [ 10030 ] DataNucleus Java5 [ 10161 ]
Key JAVAFIVEPLUGIN-4 NUCJAVAFIVE-17
Andy Jefferson made changes - 27/Aug/08 08:23 AM
Project DataNucleus Java5 [ 10161 ] DataNucleus Core [ 10143 ]
Key NUCJAVAFIVE-17 NUCCORE-103
Andy Jefferson made changes - 18/Oct/08 09:47 AM
Project DataNucleus Core [ 10143 ] DataNucleus RDBMS [ 10144 ]
Key NUCCORE-103 NUCRDBMS-72
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 made changes - 07/Sep/09 08:04 AM
Priority Major [ 3 ] Minor [ 4 ]
Component/s Types [ 10144 ]
Andy Jefferson made changes - 26/Dec/09 12:52 PM
Project DataNucleus RDBMS [ 10144 ] DataNucleus Core [ 10143 ]
Key NUCRDBMS-72 NUCCORE-436
Component/s Java Types [ 10149 ]
Component/s Types [ 10144 ]
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 made changes - 29/May/10 10:11 AM
Summary EnumSet and EmunMap Support for persisting fields of type EnumSet/EnumMap
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

Andy Jefferson made changes - 02/Jun/10 10:12 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
Andy Jefferson made changes - 11/Jun/10 01:38 PM
Status Resolved [ 5 ] Closed [ 6 ]