开发者

Grails problem with nullable contraint in domain class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜