Saturday, September 24, 2011

Re: RequestFactory / collections

On Sat, Sep 24, 2011 at 12:36 AM, Magno Machado <magnomp@gmail.com> wrote:

> But only foo got persisted, not it's bars

RequestFactory itself doesn't persist anything, it just synchronizes
the object graph between client & server. How exactly you would
persist a Foo, a list of Bars, and the relationship is dependent on
what data storage you are using, so there needs to be logic inside the
persist() method of Foo, that persists not only the Foo, but any
relationships and their objects.

If you inspect Foo.getItems() inside the Foo's persist() method, a
list of Bars should be there, that's where RequestFactory's part ends.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate