Community
Participate
Working Groups
Through JSR 338 the Java Persistence specification will add support for converting @Basic types between the attribute type and the database type. Converts are limited to certain mappings but may be auto applied to any Basic mapping in the Persistence unit with a particular attribute type.
Design documentation can be found at http://wiki.eclipse.org/EclipseLink/DesignDocs/374688
Created attachment 222077 [details] Progress patch (October 9, 2012) Progress patch for converters, includes: - Updating eclipselink-orm.xsd schema to 2.5 - Defining converters (annotations and xml) - Applying to direct and direct collection/map attributes - disable conversion support - Maintain backwards compatibility (with previous EclipseLink xml convert definition blended with the new jpa definition) - other minor clean ups Left to address: - Converters to embedded attributes - Converters defined at the entity-mappings level (XML) - More validation - Lots more testing
Created attachment 222843 [details] Progress patch (October 25th, 2012) This is a near completion patch of this feature. More tests need to be added and perhaps some fixes.
Created attachment 222950 [details] Update patch (October 29th, 2012) Updates to correct test failures on Oracle database. Patch also adds a new stored procedure query test as well (not related to these changes though, just something that came up along the way)
Created attachment 224083 [details] Update patch (November 28th, 2012) Patch includes more testing and fixes for this feature.
All patches have been submitted. Reviewed: Tom Ware JPA 2.1 test suite includes a converter test suite for both annotation and xml testing.
Update to the implementation done through bug 402380 to correct nightly tests on Glassfish which turned out to be a class loader issue.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink