I am trying to use the CycleRecoverable interface to manage cyclic issues in my object model for bi-directional relationships. Guides such as this and this, tell you to use CycleRecoverable, but I don’t have it on my class path. I’m confused as to what I actually need, and an explanation as to why I need it. I am not using Maven, so I can’t follow the second links advice, and even if I was using Maven, I don’t understand why I need more packages in order to use JAXB which I thought was included in SE6. What jar files do I actually need to include to use this interface and why? The only CycleRecoverable on my classpath is com.sun.xml.internal.bind.CycleRecoverable
The (un)official JAXB guide notates the interface, but makes no mention of how to actually use it
Note: I’m the EclipseLink JAXB (MOXy) lead and a member of the JAXB 2 (JSR-222) expert group.
As an alternative to the
CycleRecoverablemechanism in the JAXB reference implementation you may be interested in the@XmlInverseReferenceextension in MOXy:Customer
Address
The
@XmlInverseReferenceannotation specifies the field name that maps the other direction of this relationship. This is similar to how bidirectional relationships are mapped in JPA.For More Information