users@glassfish.java.net

RE: Problem with JPA and cache

From: Manfred Riem <mriem_at_manorrock.org>
Date: Tue, 15 Jul 2008 18:35:53 -0600

Hi Mitesh,

I am not the one experiencing the problem ;)

Manfred

-----Original Message-----
From: Mitesh.Meswani_at_Sun.COM [mailto:Mitesh.Meswani_at_Sun.COM]
Sent: Tuesday, July 15, 2008 5:21 PM
To: users_at_glassfish.dev.java.net
Subject: Re: Problem with JPA and cache

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net