Hi,
I have a field in SQL DB as integer type; so i have kept int type property in my model to hold the values.
But the field in the DB can have value "NULL" since it is optional field. When i run select query and try to save in the MODEL, i am getting following error.
"PropertyAccessException: Null value was assigned to a property of primitive type setter"
I have kept the following code on top of the field.
@Column(nullable=true) int uiAdjId;
Still i am getting same error.
Please help me to resolve this.
Thanks,
Laks
|