aspose file tools*
The moose likes Java in General and the fly likes XMLEncoder not serializing the whole graph! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "XMLEncoder not serializing the whole graph!" Watch "XMLEncoder not serializing the whole graph!" New topic
Author

XMLEncoder not serializing the whole graph!

Anne Forumer
Ranch Hand

Joined: Apr 19, 2004
Posts: 72
I have this class which is a composite of other classes. One of the composite, Role is itself a composite of class, Recipient. But the XMLEncoder stops at Role and doesn't go any further. All classes are serializable. I am using XMLEncoder in a "regular" way and printing to a file. Should I be doing anything special to output the complete graph?

Thanks in Advance.


Here is the "central" class:



Role contains Recipients:



The XML output is:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XMLEncoder not serializing the whole graph!
 
Similar Threads
Adding associations to a join entity..
Hibernate: persist an object containing a list with more objects
error while persisting many to many relationship object : Attempt to assign
Deleting from a One-To-Many
JPA returning collection of type PersistentBag instead of ArrayList