Yes, I just mentioned it because in my case it made a _huge_ difference when 
working with previously detached entities which got em.merged().

I don't know the exact scenario, but since EntityManagers are not Serializable, 
there is detachment needed in a lot cases. At least if you need it also working 
in a cluster or load balancer scenario. 

LieGrue,
strub

--- On Tue, 7/19/11, Pinaki Poddar <ppod...@apache.org> wrote:

> From: Pinaki Poddar <ppod...@apache.org>
> Subject: Re: Audit log with OpenJPA
> To: users@openjpa.apache.org
> Date: Tuesday, July 19, 2011, 2:47 PM
> Hi Bengt,
>   It is not obvious to me how DetachState related
> options will impact
> in-transaction entities. But I am interested to know the
> result of your
> experiment with the options Mark has suggested.
> 
>   I will recommend you make sure the following
>   1. Enhance at build time 
>   2. Set openjpa.RestoreState=true
> 
>  
>   
> 
> -----
> Pinaki Poddar
> Chair, Apache OpenJPA Project
> --
> View this message in context: 
> http://openjpa.208410.n2.nabble.com/Audit-log-with-OpenJPA-tp6557932p6599036.html
> Sent from the OpenJPA Users mailing list archive at
> Nabble.com.
>

Reply via email to