Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » teneo: client/server scenario
teneo: client/server scenario [message #620131] Mon, 21 July 2008 08:00
Eclipse UserFriend
Originally posted by:


I'm using teneo in a client/server scenario.
I found hints on the site to explicitly model id and version
attributes and this works pretty well. Anyway, there's one issue which
is still troubling me: The version field of clients and database is
getting out of sync in my application. Hibernate is incrementing the
version each time it does an update on the object (or better, it does
that on every update on the row in the database table). My clients do
not get notified about this and they keep an old version value, so
a further update on the same object would not work.

As I'm working with large emf models I do not want to read out objects
and compare version values before updating.

So my question are:
- Would a client/server scenario using teneo work without using the
version attribute at all (my attempt would be setting
PersistenceOptions.ALWAYS_VERSION to false and leave emf without any
explicitely modelled version attributes)?
- Is there a way to teach teneo/hibernate to do not care about the
version values and just do an update on the objects if the id is matching?

I'm using teneo 1.0.0, emf 2.4 and hibernate 3.2.1.

Previous Topic:oAW Template issue
Next Topic:teneo: client/server scenario
Goto Forum:

Current Time: Thu Apr 02 07:40:03 GMT 2020

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

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

Back to the top