Quote:
the database should give me an error message
Hibernate would give an error for the case you mentioned if you are using optimistic locking i.e. <version> tag.
Quote:
If i use simple <version> property, it won't work, because when i get the object properties after the submit, Mr. M will have saved his data.
submit here refers to Mr M's submit?
If you are again reading the data, after Mr M has saved then obviously there would be no error since you are working on the latest data.
Not sure if I understood what your problem is..