Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324092 - @XmlTransformation should not be required when @XmlReadTransformer & @XmlWriteTransformer are present
Summary: @XmlTransformation should not be required when @XmlReadTransformer & @XmlWrit...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 10:00 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix and updated tests (3.17 KB, patch)
2010-09-29 15:07 EDT, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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