This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 374688 - JPA 2.1 Converter support
Summary: JPA 2.1 Converter support
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on:
Blocks: 338610
  Show dependency tree
 
Reported: 2012-03-19 14:52 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:27 EDT (History)
4 users (show)

See Also:


Attachments
Progress patch (October 9, 2012) (618.81 KB, patch)
2012-10-09 13:57 EDT, Guy Pelletier CLA
no flags Details | Diff
Progress patch (October 25th, 2012) (155.61 KB, patch)
2012-10-25 13:53 EDT, Guy Pelletier CLA
no flags Details | Diff
Update patch (October 29th, 2012) (26.52 KB, patch)
2012-10-29 15:43 EDT, Guy Pelletier CLA
no flags Details | Diff
Update patch (November 28th, 2012) (157.49 KB, patch)
2012-11-28 17:52 EST, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Yorke CLA 2012-03-19 14:52:08 EDT
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.
Comment 1 Gordon Yorke CLA 2012-03-19 14:52:49 EDT
Design documentation can be found at
http://wiki.eclipse.org/EclipseLink/DesignDocs/374688
Comment 2 Guy Pelletier CLA 2012-10-09 13:57:40 EDT
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
Comment 3 Guy Pelletier CLA 2012-10-25 13:53:32 EDT
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.
Comment 4 Guy Pelletier CLA 2012-10-29 15:43:51 EDT
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)
Comment 5 Guy Pelletier CLA 2012-11-28 17:52:19 EST
Created attachment 224083 [details]
Update patch (November 28th, 2012)

Patch includes more testing and fixes for this feature.
Comment 6 Guy Pelletier CLA 2012-12-04 15:27:57 EST
All patches have been submitted.
    
Reviewed: Tom Ware
    
JPA 2.1 test suite includes a converter test suite for both annotation and xml testing.
Comment 7 Guy Pelletier CLA 2013-06-04 10:37:34 EDT
Update to the implementation done through bug 402380 to correct nightly tests on Glassfish which turned out to be a class loader issue.
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:14:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:27:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink