domain.save(flush:true)
When you save doesn’t work
or id or version dose not numberd.
Check errors fields on its domain object.
See the errors fields has the constraints error, you can check also check by hasErrors() method.
1 2 |
domain.validate() domain.hasErrors() |