Hi,
We noticed that when we do not use an @Version property for theoptimistic locking check, then ebean will only check that the olfvalues of the changed property's are still the same in the database(in the where clause).
So if some columns in the database row are changed by an externalprocess but not by ebean then we will not get an optimistic lockingexception.
Is there a property or setting to tell Ebean that it's not the onlyone changing the database? So that it will include all property's?
Of course such a property should affect caching also (by disabling theL2 cache?).
Btw, this is more a generic remark then something we need. As we founda way to use an @Version timestamp property that is updated by bothsystems hitting the database.
Rien
There is an annotation @UpdateMode where you can set updateChangesOnly = true ... but really we should have the option of just setting the changed properties and using all loaded properties in the where clause (In my book that is really what we should do by default rather than the current behaviour).
... and no we can't do that at the moment. I log a bug for this.
Thanks, Rob.
fixed in HEAD.