I have a table that has a column as data type number(1,0) and title as answer. This column could hold either value of 1 or 0. I have a java entity model that represents this table using hibernate (v4.1.11). I am having a difficulty in mapping number(1,0) from oracle sql to hibernate. Do I even need an annotation for it? Having int type would be suffice?
@Entity
@Table(name="FOO")
public class Foo {
@Column(name="ANSWER")
@<what annotation?>
private int answer;