What does myEntity.getEntityManager() return and how is that set into your entity (ie is your code managing it, or are getting it from OpenJPA) ?
On Wed, Jul 1, 2009 at 10:51 AM, Daryl Stultz <[email protected]> wrote: > On Wed, Jul 1, 2009 at 11:43 AM, Michael Dick <[email protected] > >wrote: > > > The > > PesistenceContext can be thought of as the state of a set of entities in > > memory (sort of a L1 cache). When the PersistenceContext is flushed your > > changes will go to the database. When the transaction is committed > they'll > > be committed in the DataBase. > > > (Please see other post for p-code of general pattern.) I *am* committing > the > transaction but the values (that should have been copied to the merged > instance I ignored) are not written to the db. > > -- > Daryl Stultz > _____________________________________ > 6 Degrees Software and Consulting, Inc. > http://www.6degrees.com > mailto:[email protected] >
