I have the following mapping
@Entity
@SequenceGenerator(name="sacpSequenceGenerator", sequenceName="SACP_SEQ")
public class Sacp {
private Integer id;
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="sacpSequenceGenerator")
public Integer getId() {
return this.id;
}
// other setter's and getter's
}
SACP Table is mapped according to
ID NUT NULL NUMBER(4)
When i try to save a Sacp instance, Hibernate complains
ORA-01438: Value larger than specified precision allows for this column
Even when using a Long instead of Integer, same error is thrown
What should i do to fix it ?