Here DealerID can be nullable and CarID, TyreID are unqiue.
The problem I have noticed is: Grails ignores nulls in unique constraints.
Here DealerID can be nullable and CarID, TyreID are unqiue.
The problem I have noticed is: Grails ignores nulls in unique constraints.
I don't think the question is clear, but this may be a bug in Grails: http://jira.codehaus.org/browse/GRAILS-5101