Skip to main content
Jump to: navigation, search


Design Documentation: objectIdentitityCycleDetection


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.


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

Back to the top