Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable optimistic locking globally in Grails

What's the best practice for disabling optimistic locking in Grails globally (for all the domain classes) if i'm not using Mongo? Thanks!

like image 602
chenk Avatar asked Dec 28 '14 18:12

chenk


1 Answers

If you want to disabling optimistic locking in Grails globally then you can put in Config.groovy

grails.gorm.default.mapping = {
    version false
}
like image 197
Abs Avatar answered Nov 07 '22 14:11

Abs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!