Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313397 - @XmlInverseReference should act like @XmlTransient for schema generation
Summary: @XmlInverseReference should act like @XmlTransient for schema generation
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-05-18 12:46 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments
Proposed Fix and Test Case (4.72 KB, patch)
2010-05-19 11:40 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-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