google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

DatastoreImpl.insert not setting version attribute #347

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version are you using? (Morphia 0.99/Driver 2.7.2/MongoDB 
mongodb-win32-i386-2.0.0)

Please include a stack trace below:

The DatastoreImpl.insert(entity) method does not set the version attribute, 
this is inconsistent with the behavior of the DatastoreImpl.save(entity) method.

This is the root cause for issue 345 optimistic locking not working.

Original issue reported on code.google.com by seb_r...@hotmail.com on 30 Nov 2011 at 12:45