Display ORACLE NUMBER Hibernate type
I have a table in an ORACLE 10g database with a column " kzCode NUMBER(1)
".
If I try to map this against Hibernate annotations in JBOSS Server WebApp like this:
@Column(nullable=false)
private Integer kzCode;
An error appeared:
org.hibernate.HibernateException: Wrong column type: kzCode, expected: integer
I have also tried
@Column(nullable=false) private BigInteger kzCode;
mistake:
org.hibernate.HibernateException: Wrong column type: kzCode, expected:numeric(19,2)
I really don't know which type of Java to take.
0
mahdia
source
to share