12
在Grails中使用HibernateCriteriaBuilder时,为什么会收到“将Null值分配给原始类型设置器的属性”错误消息
在grails域对象中使用原始属性时,出现以下错误: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute at grails.orm.HibernateCriteriaBuilder.invokeMethod(HibernateCriteriaBuilder.java:1077)