I think what you need is a child context. See CayenneRuntime.getContext(DataChannel <http://cayenne.apache.org/docs/3.1/api/org/apache/cayenne/DataChannel.html> parentChannel)

On 19/4/2013 21:49, Markus Reich wrote:
Hi,

is it possible to create a second context to make an atomic update to an
object not disturbing the main context?

e.g.
in the application you can change data in a fom, there are two buttons
"save" and "revert"
by the way the user can add comments to the form, when he clicks add
comment a popup opens he can enter a text and this text should be saved,
but when I do a commit, the data changes in the form are also commited :-(

regards
Meex


Reply via email to