|Client/Server App with EMF and Teneo [message #595608]
||Tue, 14 November 2006 11:30
| Christian Donhofer
Registered: July 2009
me and my colleagues are currently working on an application
using EMF & hibernate (via teneo).
it's a client-server app and i think this is the reason for our actual
problem. our tool works as follows:
users can create objects offline (using an emf editor) and save their work
either off- or online.
when an object has been saved to the database, (other) users can download,
edit and save the object as an XMI resource on their filesystem. after
finishing their work, they can connect to the database (creating a new
session for the transaction) and update the changes, and that's where the
problem occurs: hibernate can't update the object in the db(using
saveorupdate/merge) if it's already present. as i understand it, because
the object has been saved locally in the meantime and cannot be associated
to the object in the database anymore(despite of having the same class &
we've been searching for a solution for this problem for quite a while now,
finding a podcast on eclipsezone with ed merks in which he (unfortunately
only for a minute)talked about sending a changedescription from client to
server instead of the changed object itself. i tried to implement this
but quickly found out that a changerecorder/description is rather meant
to be used for an undo/redo command, since it only records the values
before the changes.
is there a good approach for our application? the only thing left i can
think of is applying all changes "manually" online - but i believe there
must be a better way.
thanks in advance, chris
Powered by FUDForum
. Page generated in 0.01232 seconds