On Dec 13, 6:54 am, asianCoolz <second.co...@gmail.com> wrote:
> how to share json-domain object on gwt client side and server side
> objectify? any such example? possible to do this without dto/
> duplicated pojo?
It is possible.

The models at 
http://code.google.com/p/gwt-gae-book/wiki/StoringData#Coding_our_data_model
are used for storage (with twig, but it would work the same with
objectify) and server-side json, with gson.
As gson isn't supported in GWT due to lack of reflection, you would
need to add piriti [1] annotations to parse the same model in GWT json
too.

For REST apps, I am considering having the client side models separate
from server side, which results in some duplication but simpler
models. Still experimenting.

[1] http://code.google.com/p/piriti/

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to