Tuesday, August 28, 2012

Re: Cloning EntityProxies

This works! Thanks.
(just wanted to state that for the record).

On Thursday, April 12, 2012 11:57:27 AM UTC-4, gwtomni gwtomni wrote:
try with this:


                AutoBean<T> oldBean = AutoBeanUtils.getAutoBean(oldProxy);
                AutoBean<T> newBean = AutoBeanUtils.getAutoBean(newProxy);
                AutoBeanCodex.decodeInto(AutoBeanCodex.encode(oldBean), newBean);
                newProxy = newBean.as();
                context.edit(newProxy);

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/l09JgT65m-cJ.
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.

No comments:

Post a Comment