简体   繁体   中英

Grails problem with nullable contraint in domain class

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

如果使用可空约束,则应使用Integer和Boolean。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM