(GRAILS-9123) Now unique constraint validation should work for Domain Classes mapped via Hibernate

Fix itself is done and corresponding test case is added.