Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.2-M3
-
Component/s: Persistence
-
Labels:None
Description
Should be great to have the option to set something like
grails.gorm.flush = true
grails.gorm.failOnError = true
in Config.groovy to use the by default for calls to save, merge and delete.
My code now contains a lot of boilerplate like save(flush: true) as I'm doing this everywhere. Even this is the default in scaffolding.
I even would argue that grails.gorm.flush should be set to true by default then in Config.groovy.
Issue Links
| This issue is related to: | ||||
| GRAILS-4343 | Add a safe save() method to Domain Objects |
|
|
|
I would definitely use the failOnError = true setting if it were available.