Closed GoogleCodeExporter closed 9 years ago
I think problem might be the way you save the object. I presume you use your
own save method and you send the object to be persisted to the server.
From what I understand dpHibernate doesn't have a custom serializer to
serialize the object sent from flex client, therefore when you send an object
via a service call it tries to serialize whole object tree. That initiates lazy
load requests made from flex client but before it gets the results object is
sent to the server with proxies in place of lazy loaded "parent".
Solutian is: do not send any object through custom services instead use the
method demonstrated in lazy overflow example. (i.e. object.save()) This method
sends the proxy information of the object to be saved and an array containing
the changes made to it. Therefore it won't cause any of the probkems mentioned
above.
Hope it helps.
Umut
Original comment by uo1979
on 7 Feb 2011 at 4:37
As Umut mentioned, persistence is handled through change messaging, instead of
serializing the object graph.
Original comment by martypit...@gtempaccount.com
on 15 Mar 2011 at 3:20
Original issue reported on code.google.com by
dboard...@gmail.com
on 25 Sep 2008 at 7:39