fix for GRAILS-10193 "One-to-one relation and unique constraint validation"

http://jira.grails.org/browse/GRAILS-10193