users@glassfish.java.net

Re: Problem with JPA and cache

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Tue, 15 Jul 2008 16:21:15 -0700

Hi Manfred,

Which child is missing in getCount()? Is it the first one that was
created with parent? If yes, are you making sure that relationships are
set from both sides ?

>Also in the code below, if I remove he "p1.setSerialNumber" invocation
the problem does not occur.
Is that the version field? If yes, you are not suppose to update it
(Refer to section 3.4.2 of JPA 1.0 spec)

-Mitesh