Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Client/Server App with EMF and Teneo
Client/Server App with EMF and Teneo [message #595608] Tue, 14 November 2006 11:30
Christian Donhofer is currently offline Christian DonhoferFriend
Messages: 94
Registered: July 2009
Member
hi all!

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 &
id).

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
Previous Topic:How to declare type of empty collection in OCL?
Next Topic:Performance Problem with Teneo 200610261350 / Jpox 1.1.3
Goto Forum:
  


Current Time: Fri Apr 26 22:06:48 GMT 2024

Powered by FUDForum. Page generated in 0.03278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top