openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: EntityManager.clear() semantics
Date Wed, 31 Jan 2007 17:24:21 GMT
> Basically, if we have dirtied the Persistence Context, then do a  
> flush()
> followed by the detachAllInternal().  I don't think the clear()  
> should be
> doing this flush() operation.  Any disagreement?

I agree.  But note that just removing the flush call won't work for a  
couple of reasons: it's needed by JDO, and we'll just flush later in  
the DetachManager when we detect a dirty instance.  So just a warning  
that it isn't quite as trivial a fix as it might appear to be.
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Mime
View raw message