On 18 nov, 08:47, agi <agata.p...@gmail.com> wrote:
> Hi
>
> I had this problem as well. I haven't found perfect solution.. What I
> have done is while retrieving data from the database so e.g. in
> findEntity(Long id) method I am forcing persistent layer to return my
> collection immediately:
> Entity findEntity(Long id)
> {
>   // open transaction, get entityManager etc.
>   // ...
>
>   Entity obj = entityManager.find(id);
>
>   // force retrival of collection
>   obj.getDonations().size();
>
>   // handle transaction and entitymanager etc.
>   //...
>
> }
>
> I will be very glad to find out how to make it in a better way:)

I believe the idea is that you use a "request scoped" transaction/JPA-
session (or whatever, I'm not used to JPA/JDO and all that stuff).
See also http://code.google.com/p/google-web-toolkit/issues/detail?id=5389

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