In GWT 2.0.x you can use the annotations of the JPA and JDO without
problems and without using any additional library. Your source code
will be compiled normally. No exception (SerializableException) will
occur.

So what's the problem:
In a relationship one-to-many, when the GWT tries to serialize this
attribute that is a "List", will probably return an exception
(LazyInitializationException). Return an attribute that has a
relationship one-to-many is not good for various reasons, the
principal is the performace.

Solution
Add the annotation @GwtTransient above in the attribute "List" and
everything will work normally.

Advantage:
You use a native GWT solution to deal with this type of information.
Decreases some jars in your application, and get 10 ~ 200ms each
request.

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