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: NUCJPA-164
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 API JPA

Support JPA2.1 Type Converter annotations

Created: 01/Feb/12 07:44 PM   Updated: 13/Aug/12 03:16 PM   Resolved: 02/Feb/12 10:31 AM
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.7


 Description  « Hide
JPA2.1 allows a user to add the following to metadata

@Converter(name="Converter1", converterClass=mydomain.MyConverterClass.class)

where MyConverterClass implements EntityAttributeConverter

and then define a field of a class as

@Convert("Converter1")
URL url;

so it will be persisted using the provided converter, and retrieved using it also

Andy Jefferson added a comment - 02/Feb/12 10:31 AM
SVN trunk now processes these annotations.
To make use of them it is also necessary to use 3.1.0-m1 or later of datanucleus-core, and the relevant store plugin (which will need their own updating)

Andy Jefferson made changes - 02/Feb/12 10:31 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.7 [ 11441 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 06/Feb/12 10:14 AM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 13/Aug/12 03:16 PM
Component/s Queries [ 10180 ]