Search code examples
grailsgrails-orm

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!


Solution

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

    grails.gorm.default.mapping = {
        version false
    }