openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <michael.d.d...@gmail.com>
Subject Re: State Management, changed properties on detached object not saving
Date Wed, 01 Jul 2009 16:17:03 GMT
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 <daryl@6degrees.com> wrote:

> On Wed, Jul 1, 2009 at 11:43 AM, Michael Dick <michael.d.dick@gmail.com
> >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:daryl@6degrees.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message