The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Does XmlProxy support hierchical entities?

Last post 08-02-2007, 7:11 AM by David.Parsons. 1 replies.
Sort Posts: Previous Next
  •  08-01-2007, 7:24 PM 4257

    Does XmlProxy support hierchical entities?

    I'm testing out the new XmlProxy web methods using example #2 (I own both sides of the wire). My model has a parent Contact entity and a nested child Person. When I try doing a ListPersons using the serialization, all I'm seeing coming back are the PersonProxyStub instances - without the nested ContactProxyStub instances. Is this a limitation and, if so, any ideas how to work around this? Prior to getting the latest release, I built a separate business object schema dll where I had "flattened out" my parent child stuff. I did this "by hand" using the UpToContact method to grab and populate those fields in the "flattened" Person instance before returning it. Ideas?

     Thanks,

    John

  •  08-02-2007, 7:11 AM 4264 in reply to 4257

    Re: Does XmlProxy support hierchical entities?

    We currently do not serialize hierarchical properties, because it can result in endless loops. We are working on serializing just the hierarchical sub-objects that have been accessed. The usage would not be much different than the technique you are using to flatten out the table. You would loop thru the child collection and "touch" each of the "UpToContact". The advantage is that the results are not flattened out, you have the parent object for each child in the serialized collection. We do not have a release date, yet.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML