Re: Optimistic locking and concurrency within the same application

2010-10-30 Thread Paulo Andrade
So I went ahead and did a bit of testing: I created an app that would execute the following code (the model as an entity named "Counter" with a "value" property marked for locking): -- ObjectContext context = DataContext.createDataContext(); Counter count

RE: Modified Fields

2010-10-30 Thread Bruno René Santos
I only found the hasChanges()... there is, on the other hand, a getSnapshot(ObjectId) function. Could I use it to compare to my CayenneDataObject, field by field, in order to check which ones were changed? This is because I need to create log entries where for each update I only specify the key-val