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

Bug 313397

Summary: @XmlInverseReference should act like @XmlTransient for schema generation
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: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix and Test Case none

Description Blaise Doughan CLA 2010-05-18 12:46:45 EDT
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.
Comment 1 Matt MacIvor CLA 2010-05-19 11:40:39 EDT
Created attachment 169140 [details]
Proposed Fix and Test Case
Comment 2 Matt MacIvor CLA 2010-05-20 13:44:56 EDT
Attached patch checked into SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:42 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink