Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370579 - Enhancement: support @XmlInverseReference with @XmlAnyElement
Summary: Enhancement: support @XmlInverseReference with @XmlAnyElement
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 11:50 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2012-02-03 11:50:35 EST
We should investigate if the following use case can be supported:

import java.util.*;
import javax.xml.bind.annotation.*;
import org.eclipse.persistence.oxm.annotations.XmlInverseReference;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Parent {

    @XmlInverseReference(mappedBy="children")
    private Parent parent;

    @XmlAnyElement
    private Set<Object> children = new HashSet<Object>();


}
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:15:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:33:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink