|teneo: client/server scenario [message #620131]
||Mon, 21 July 2008 08:00
Originally posted by: hodi_.gmx.at|
I'm using teneo in a client/server scenario.
I found hints on the elver.org 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.
Powered by FUDForum
. Page generated in 0.03464 seconds