tags:

views:

187

answers:

1

alt text

Here DealerID can be nullable and CarID, TyreID are unqiue.

The problem I have noticed is: Grails ignores nulls in unique constraints.

+1  A: 

I don't think the question is clear, but this may be a bug in Grails: http://jira.codehaus.org/browse/GRAILS-5101

Alison
This is a bug. A major one if you ask me. It was a regression from v1.1 to v1.2.
Tiggerizzy
Presumably you could implement the restrictions you want using custom constraints (see e.g. http://stackoverflow.com/questions/2590906/testing-custom-constraints-in-grails-app).
Alison