| Summary: | @XmlInverseReference should act like @XmlTransient for schema generation | ||||||
|---|---|---|---|---|---|---|---|
| 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: | eclipselink.oxm-inbox | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 169140 [details]
Proposed Fix and Test Case
Attached patch checked into SVN The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
For the following model: public class Address implements Serializable { @XmlInverseReference(mappedBy="address") private Customer customer; } The following XML schema is incorrectly generated: <xsd:complexType name="address"> <xsd:sequence> <xsd:element name="customer" type="customer" minOccurs="0"/> </xsd:sequence> </xsd:complexType> In terms of schema generation @XmlInverseReference should act like @XmlTransient and not generate an element for the customer property.