0
即使該字段設置爲可爲空,當表單正在讀取它時,我也會得到異常。Grails,遺留數據庫中的空值賦予PropertyAccessException
好吧,我終於通過將基元int更改爲Integer allover來解決它。請參閱以下答案。
錯誤:
Caused by: org.hibernate.PropertyAccessException:
Null value was assigned to a property of primitive type setter of
com.mytrading.legacy.RoleType.copyToXOR
域名:
class RoleType {
int copyToXOR
static constraints = {
copyToXOR nullable:true
}
}