开发者

Grails problem with nullable contraint in domain class

开发者 https://www.devze.com 2022-12-30 01:51 出处:网络
I\'m having the following problem with grails\' 1.2.1 domain classes: Wh开发者_高级运维en I set a constraint attr(nullable:true) and attr is int or bool, this condition isn\'t reflected in the db (po

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

Wh开发者_高级运维en 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消