February 28, 2007 9:51 PM
> To: Patrick Linskey
> Cc: open-jpa-dev@incubator.apache.org
> Subject: Re: OpenJPA & Transaction configuration
>
> Here is a link to the source (and no version field):
>
> http://svn.apache.org/repos/asf/incubator/ode/trunk/dao-jpa/sr
c/main
iginal Message-
> From: Matthieu Riou [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 28, 2007 9:51 PM
> To: Patrick Linskey
> Cc: open-jpa-dev@incubator.apache.org
> Subject: Re: OpenJPA & Transaction configuration
>
> Here is a link to the source (a
If you set the version field of an instance to a non-default value,
OpenJPA assumes the instance was detached, or that you're actively
trying to make it behave as a detached instance.
___
Notice: This email message, together
L PROTECTED]
Sent: Wednesday, February 28, 2007 7:50 PM
To: Pinaki Poddar
Cc: open-jpa-dev@incubator.apache.org
Subject: Re: OpenJPA & Transaction configuration
Thanks! But shouldn't I worry about the fact that a brand new instance
is detached? I could be wrong but it looks like it's more a
e it.
> -Original Message-
> From: Matthieu Riou [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 28, 2007 7:50 PM
> To: Pinaki Poddar
> Cc: open-jpa-dev@incubator.apache.org
> Subject: Re: OpenJPA & Transaction configuration
>
> Thanks! But shouldn't I worry
e-
> From: Matthieu Riou [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 28, 2007 7:50 PM
> To: Pinaki Poddar
> Cc: open-jpa-dev@incubator.apache.org
> Subject: Re: OpenJPA & Transaction configuration
>
> Thanks! But shouldn't I worry about the fact that a br
Thanks! But shouldn't I worry about the fact that a brand new instance is
detached? I could be wrong but it looks like it's more a symptom of
something wrong in my configuration, no?
On 2/28/07, Pinaki Poddar <[EMAIL PROTECTED]> wrote:
instead of _em.persist(ret);
try
_em.merge(ret);
as re
instead of _em.persist(ret);
try
_em.merge(ret);
as ret is detached instance rather than new.
Pinaki Poddar
BEA Systems
415.402.7317
-Original Message-
From: Matthieu Riou [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 28, 2007 6:29 PM
To: open-jpa-dev@incubator.apache.org