What is the best practice to disable optimistic locking in Grails globally (for all domain classes) if I don't use Mongo? Thank!
If you want to disable optimistic locking in Grails globally, you can add Config.groovy
grails.gorm.default.mapping = { version false }
By default, GORM is configured with optimistic locking enabled. You can disable this by calling the version method with false:
In your domain class, define this mapping as follows:
static mapping = { // Used to disable optimistic locking version false }
Here is the link for reference
Source: https://habr.com/ru/post/1569220/More articles:Why can a member function be called temporarily, but a global function cannot? - c ++Return HTML file from JAX-RS service - jax-rsWhat actually checks for for defimpl in Elixir? - elixirC # 6 safe navigation not working in VS2015 preview - c #Команда git не распознается в окне инструментов терминала в IntelliJ IDEA - gitHow to make a list of tuples with matplotlib? - pythonJava applets and proxies - javaHow to output false when using cl-json - jsonПовторное использование частичного контента с другим контентом, в том же представлении - javascriptjtable how to use rs2xml - javaAll Articles