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.