Issue Details (XML | Word | Printable)

Key: NUCCORE-800
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Provide generic TypeConverter facility to replace ObjectLongConverter/ObjectStringConverter

Created: 16/Jan/12 09:17 AM   Updated: 06/Feb/12 10:13 AM   Resolved: 16/Jan/12 09:19 AM
Component/s: Java Types
Affects Version/s: None
Fix Version/s: 3.0.6


 Description  « Hide
JPA2.1 is going to standardise type conversion, providing a simple converter interface allowing conversion between field/property type and the equivalent datastore (Java) type. We should restructure the ObjectStringConverter/ObjectLongConverter to make it generic and provide a registry of such converters, allowing them to be specified in the metadata of a class

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 16/Jan/12 09:19 AM
SVN trunk now provides the generic TypeConverter interface and the basic implementations. Work remaining is to add a registry (within TypeManager), and then migrate all store plugins to use the new interface (DN3.1)