I have the following
def save(ACommand command){
...
}
@Validateable
class ACommand implements Serializable
{
ADomainObject bundleDef
}
but every time the name is saved, the version is incremented. Therefore, if I open two browsers and send another value sequentially, instead of receiving the error a second time, as expected, the value is updated.
I also tried using two different sessions without a difference
Update
If I use breakpoints and submit before the other is complete, it works fine. However, if I allow the first full, then send the second without updating, the version will be updated to a newer one (which I donβt want), and the change will pass.
Update 2
, Hibernate , , StaleObjectException. , .
per Grails, , .