
Originally Posted by
ozGuy
Hi
I am currently stuck on this Optimisitc locking feature provided by hibernate which doesn't seem to work for me.
I have a Domain Object ( DO ) and a Data Transfer Object(DTO) and a property called recordVersion on both of these objects and its defined in the *.hbm file with <version ....> property.
Problem is this:
I read the DO and convert it to DTO and hibernate session closes. DTO then gets passed on to the web layer where user modifies it.
Then when the form is submitted, i read the Domain object from database and convert the DTO to DO.