New Posts New Posts RSS Feed: Any simple way to force the XML Serialization of the complete object graph?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Any simple way to force the XML Serialization of the complete object graph?

 Post Reply Post Reply
Author
Frederic View Drop Down
Newbie
Newbie
Avatar

Joined: 09-Sep-2011
Location: Canada
Posts: 8
Post Options Post Options   Quote Frederic Quote  Post ReplyReply Direct Link To This Post Topic: Any simple way to force the XML Serialization of the complete object graph?
    Posted: 14-Dec-2011 at 12:49pm
Good afternoon,

I have read the short section regarding "XML Serialization of Business Objects" of "DevForce 2010 Developpers Guide". so I understand the following statement:

Without some mechanism to control the depth of the graph, the serialization of a single entity might result in hundreds or even thousands of related entities being serialized.

Nethertheless, we want to use the serialization mechanism to perform an "entity" Cut and Paste functions, so we need a simple way to include, during the serialization process, the complete object graph of an entity. Do you have any simple suggestion?

Thanks for your help.

Frédéric
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 14-Dec-2011 at 1:18pm
Hi Frederic;

As the guide says, it will only serialize objects in the EntityManager's cache so as long as you have the complete object graph of an entity in the cache, the serialization process will include the full graph.

Just an additional note. I'm guessing you're reading the PDF version of the developer's guide. That is no longer current. We now maintain DevForce 2010 documentation on drc.ideablade.com

Here's a link discussing the same topic on the DRC (DevForce Resource Center). http://drc.ideablade.com/xwiki/bin/view/Documentation/xml-serialization
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down