Scala, JPA & nullable fields -
in trying use scala jpa, have following snippet part of definition of entity
@column(name = "acc_int", nullable = true) @beanproperty var accint: double = _
all fine until retrieve data , following exception:
org.springframework.orm.hibernate3.hibernatesystemexception: null value assigned property of primitive type setter of com.jim.fi.sppa.riskdata.accint; nested exception org.hibernate.propertyaccessexception: null value assigned property of primitive type setter of com.jim.fi.sppa.riskdata.accint .... caused by: org.hibernate.propertyaccessexception: null value assigned property of primitive type setter of com.jim.fi.sppa.riskdata.accint @ ... caused by: java.lang.illegalargumentexception: can not set double field com.jim.fi..sppa.riskdata.accint null value
i think going on here -- scala trying treat double double, i'm not sure how around it.
double
in scala double
, primitive type. wrapper type refer java.lang.double
.
Comments
Post a Comment