Jump to: navigation, search

EclipseLink/Development/379706

Design Documentation: objectIdentitityCycleDetection

379706

In the current JAXB RI, developed by Sun, there are a series of "proprietary" JAXB extensions that are available to provide advanced JAXB functionality outside of the JAXB spec (these extension classes reside in the com.sun.xml.bind package).

The Marshaller property com.sun.xml.bind.objectIdentitityCycleDetection can be used to configure the strategy EclipseLink will use to detect an Object cycle. By default, EclipseLink will use Object identity to determine if a cycle exists; setting this property to false will tell EclipseLink to use the equals() method instead.


Example

Marshaller m = jaxbContext.createMarshaller();
m.setProperty("com.sun.xml.bind.objectIdentitityCycleDetection", false);