Hibernate version:
tools.3.0.0.alpha4
Name and version of the database you are using:
Oracle 8.1.7
Hello, I've encountered the following problem trying reverse enginnering through Ant task:
jdbcconfiguration task with >hbm2java< incorrectly maps Oracle's INTEGER (NUMBER(38,0)) into java.math.BigInteger.
I've tried to solve this by adding the follwing to reveng.xml:
Code:
<type-mapping>
<sql-type jdbc-type="DECIMAL" hibernate-type="long" />
<sql-type jdbc-type="NUMERIC" hibernate-type="long" />
<sql-type jdbc-type="BIGINT" hibernate-type="long" />
<sql-type jdbc-type="INTEGER" hibernate-type="long" />
<sql-type jdbc-type="NUMERIC" length="38" hibernate-type="long" />
</type-mapping>
and it doesn't help.
How can I map Oracle's INTEGER to
long type in Java?
Is it <type-mapping> problem or another jdbc-type is needed?
Thanks in advance.
P.S. I've seen some threads in forum on this problem, but there were no straight answer. Had anyone found solution?