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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -