I have a column in database of type smallint.It is guranteed that the column will have values 0 and 1.In Hibernate I have mapped this as
.
I want to convert this column to a boolean value in my POJO.0 = false, 1 = true. Can I do that ?
Right now, this mapping is giving error because there is a NULL value in one of the records
, inspite of having
.How can I avoid this ?