Issue
I have this int
column:
@Column(length = 4)
private int contract_owner_id;
I don't need to set always value for every table row. I get this exception when I make select query:
Can not set int field org.entity.contracts.contract_owner_id to null value
Is there some way to set numb setups when there is no data into the table column?
Solution
The primitive datatype int isn't nullable. You need to use the Wrapper class "Integer" in this case. So just replace the type.
Answered By - Kikkirej
Answer Checked By - David Goodson (JavaFixing Volunteer)