You can try this out today by downloading one EclipseLink 2.5.0 nightly downloads starting on March 1, 2013 from:
Showing posts with label XmlInverseReference. Show all posts
Showing posts with label XmlInverseReference. Show all posts
March 3, 2013
MOXy's @XmlInverseReference is now Truly Bidirectional
EclipseLink JAXB (MOXy)'s @XmlInverseReference annotation enables you to map a back pointer during the unmarshal operation (useful when mapping JPA entities). The problem was it acted like @XmlTransient during the marshal operation. This means that previously it could only be used in one direction. Now I'm happy to announce in EclipseLink 2.5.0 we have expanded @XmlInverseReference so that the corresponding property may be writeable enabling it to be used in both directions.
Labels:
EclipseLink,
EclipseLink 2.5,
JAXB,
JSON,
MOXy,
XmlInverseReference
July 26, 2010
JPA Entities to XML - Bidirectional Relationships
JAXB is your best choice when binding Java objects to XML. But what happens when those Java objects turn out to be JPA entities? For the most part it is business as usual, although there are a couple things to be aware of. In this post we'll cover a MOXy extension that can be used to map a bidirectional relationship.
Labels:
EclipseLink,
Extension,
JAXB,
JPA,
MOXy,
XmlInverseReference
Subscribe to:
Posts (Atom)