On Thu, Jun 25, 2009 at 1:07 PM, Roger <[email protected]> wrote:
> On Thursday 25 June 2009 16:27:20 Daryl Stultz wrote: > > On Wed, Jun 24, 2009 at 4:22 PM, Roger <[email protected]> > wrote: > > > is there a way > > > through the "enhanced" version to detect which entities have been > changed > > > so I > > > don't call persist() for them, > > > > Well, since no one else has replied, I might be able to help. Try this: > > OpenJPAEntityManager openJpaEm = (OpenJPAEntityManager) em; > > assertTrue(openJpaEm.isDirty(entity)); > > > > Is it ok to do that? Shouldn't I be working through the generic Persistence > API rather than "tying" myself to the specific implementation? > Yes, it's better if you can stay in the generic API, but I thought you were willing to breach that since you were asking about the "enhanced" version. -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:[email protected]
