Hi Pinaki, The issue is that the field actually *is* marked as dirty. But when I compare the Map of my current entity and the Map of the old state (that I get from the SaveFieldManager) it contains the same values.
Example: // Step 1: Create an instance of Parent Parent parent = new Parent(); parent.getStringAttributes().put("key", "oldValue"); em.persist(parent); em.flush(); em.clear(); // Step 2: Modify the value parent = em.find(Parent.class, em.getId()); parent.getStringAttributes().put("key", "newValue"); em.flush(); When examining both Maps in my AuditManager I see 'newValue' in both cases. Is that a bug? Cheers, Christopher -------- Original-Nachricht -------- > Datum: Mon, 19 Sep 2011 15:17:14 -0700 (PDT) > Von: Pinaki Poddar <ppod...@apache.org> > An: users@openjpa.apache.org > Betreff: Re: Problems getting the old state of a Map / auditing > Hi Christopher, > If the context allows, you can try the following method in > OpenJPAEntityManager > > /** > * Make the named field of the given object dirty. > */ > public void dirty(Object o, String field); > > > ----- > Pinaki Poddar > Chair, Apache OpenJPA Project > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Problems-getting-the-old-state-of-a-Map-auditing-tp6807638p6810207.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone