Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324092

Summary: @XmlTransformation should not be required when @XmlReadTransformer & @XmlWriteTransformer are present
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and updated tests none

Description Blaise Doughan CLA 2010-08-31 10:00:03 EDT
Currently when specifying a transformation mapping on a property through annotations the following is required:

    @XmlTransformation
    @XmlReadTransformer(transformerClass=DateAttributeTransformer.class)
    @XmlWriteTransformers({
        @XmlWriteTransformer(xpath="C_DATE/text()", transformerClass=DateFieldTransformer.class),
        @XmlWriteTransformer(xpath="C_TIME/text()", transformerClass=TimeFieldTransformer.class),
    })
    private Date cDate;


The @XmlTransformation annotation only has value when specifying the "optional" flag and should not be required to be present.
Comment 1 Matt MacIvor CLA 2010-09-29 15:07:27 EDT
Created attachment 179887 [details]
Proposed fix and updated tests
Comment 2 Matt MacIvor CLA 2010-09-30 13:55:12 EDT
Attached patch checked into SVN.
Reviewed by David McCann
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:32:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink