Community
Participate
Working Groups
Currently with the following object model, MOXy is throwing an exception that the domain object has two mapped properties of the same name, when in reality neither of them are mapped since they are @XmlTransient: public class Foo { @XmlTransient private String bar; @XmlTransient public String getBar() { return bar; } public woid setBar(String bar) { this.bar = bar; } } Workaround: Annotate just the field or property (not both) as is appropriate for the specified accessor type.
Created attachment 212935 [details] Patch - code changes - 2.3
Created attachment 212946 [details] Patch - code changes - 2.3
Created attachment 212947 [details] Patch - test changes - 2.3
*** Bug 363523 has been marked as a duplicate of this bug. ***
Fixed and checked in to 2.3 and trunk. Reviewed by bdoughan.
Reopening this bug as it is causing another problem with XmlTransient / propOrder. The following class will give an "XmlTransient in prop order" error: @XmlTransient @XmlRootElement @XmlType(name="",propOrder={"s001" , "b001"}) public class TestClass { private String s001; private boolean b001; public TestClass() {} public String getS001() { return s001; } public void setS001(String s001) { this.s001 = s001; } public boolean isB001() { return b001; } public void setB001(boolean b001) { this.b001 = b001; } }
Created attachment 213244 [details] Additional patch for class-level XmlTransient
Updated to ignore check when Class is Transient as shown in the Additional patch.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink