static constraints = { property unique: true }
This means that you would not get a grails.validation.ValidationException but a org.springframework.dao.DataIntegrityViolationException.
This means that
domainInstance.validate()
would not capture a duplicate "property"
No comments:
Post a Comment