| Summary: | @XmlTransformation should not be required when @XmlReadTransformer & @XmlWriteTransformer are present | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||
| Component: | Eclipselink | Assignee: | 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: |
|
||||||
Created attachment 179887 [details]
Proposed fix and updated tests
Attached patch checked into SVN. Reviewed by David McCann The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
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.