Huh, is that documented !? I don't understand why we didn't heard about this
before.

Christian

On Thu, Feb 4, 2010 at 8:05 AM, Marcos Alcantara <[email protected]> wrote:

> Hi Diego,
>
> Are you sure of this?
>
> It would be great to stop using a 3rd party lib to process all DTO´s.
>
> Thanks!
>
> Marcos Alcantara
>
> On 4 fev, 08:07, Diego Lovison <[email protected]> wrote:
> > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to