tobiaskraft / VersionBug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimistic locking seems not to work correctly when updating a domain class.

The version property value in the domain class is overwritten by the database value before saving the entity. Therefore the version property has always the newest (highest) value and the optimistic lock exception is never thrown.

The problem occured with the following versions:

grails: 4.0.6 java: 11.0.8+10

About


Languages

Language:JavaScript 76.6%Language:CSS 12.4%Language:Groovy 8.5%Language:Shell 1.7%Language:Batchfile 0.8%