It should, but adding the annotation won't hurt.

- Jason

On Thu, Oct 29, 2009 at 3:27 AM, leszek <leszek.ptokar...@gmail.com> wrote:

>
> You have now:
>
>  employee.addComputer(computer);
>        pm.close();
>
> Replace with:
>
>  employee.addComputer(computer);
>  pm.makePersistent(employee);
>  pm.close();
>
> You update entity but don't persist it again.
>
> Also replace:
>
>  @Persistent
>    public Set<Long> computerKeys = new HashSet<Long>();
>
> with:
>
>    @Persistent(defaultFetchGroup = "true")
>     public Set<Long> computerKeys = new HashSet<Long>();
>
> I'm not sure if method: "employeeCheck.computerKeys.isEmpty())"
> launches "lazy loading".
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to