openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yoavsc <>
Subject dirty objects state after a commit
Date Mon, 02 Mar 2009 13:50:18 GMT

I use the getDirtyObjects() method of the OpenJPAEntityManager to get a
collection of dirty objects.
I have a problem with new objects:
After I commit the transaction, every field (except for the id one) of all
new entities in the dirty objects collection has a null value.

(The objects in the collection are the same ones, but all their values are

I need the object to have the correct values in order to send an event
containing the new entity.
Is it a bug or an intended behaviour?

I could bypass the problem by asking the entity manager to fetch the
entities (because the id field was not nulled). Is that the right way to
avoid my problem?
View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message