Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails problem with nullable contraint in domain class

Tags:

grails

I'm having the following problem with grails' 1.2.1 domain classes:

When I set a constraint attr(nullable:true) and attr is int or bool, this condition isn't reflected in the db (postgresql 8.4). However, if attr is a String, the DB is consistent with the situation.

Any hints ?

Thanks

like image 258
xain Avatar asked Jan 23 '26 03:01

xain


1 Answers

You should use Integer and Boolean if you're using the nullable constraint.

like image 105
Stefan Armbruster Avatar answered Jan 26 '26 19:01

Stefan Armbruster