Comment Re:Rails, great for those fed up with J2EE. (Score 4, Informative) 235
Rails supports optimisting locking out of the box. Just add a lock_version column to your table and it will do the rest.
"I have five dollars for each of you." -- Bernhard Goetz