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

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

URL url;

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

Sort Order: Ascending order - Click to sort in descending order
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)