Sunday, January 2, 2011

Re: Using RequestFactory and Editor: How to deal with server side merge in bidirectional association?

1) retrieve A with the list of Bs
use .with("listOfBs") to get Bs
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
2) Enable A for editing
3) delete b2 from the list of Bs
4) persist A.

On Jan 2, 6:10 am, "Mike.G" <gsun...@gmail.com> wrote:
> hi all:
>      Suppose i have two Entity A and B, and in A i have a List of B and they
> are bidirectional association. At the client side, i have Aproxy and Bproxy
> corresponding to Entity A and B, using editor i can add and delete the
> Bproxy from Aproxy.
>      Suppose we retrieve A from DB, the A has two B: b1 and b2. at client
> side, user delete b2proxy from Aproxy(using editor), and send it to server
> using requestfactory. my question is how to update the DB using JPA?
>  Thanks.

--
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