Object object = new Object();
I'm not sure as this relates to a specific case:
- not using enhancement
- bean has no version property/column
This results in updates with no optimistic concurrency checking - which is no really ideal.
Also note that as an alternative approach for beans with no version column is to check for a non-null id property (and choose to update when a non-null id property exists).
... but firstly it should be noted that it is highly desired that there is a version property to get efficient optimistic concurrency checking.
This is FIXED in HEAD.
That is there is now an update() method added to Ebean and EbeanServer.