My primary key in the Oracle table is of type Integer. When I do the reverse engineering, it converts integer to BigDecimal. The primary key is generated by an Oracle Sequence that returns a “Long” so it gives me an error. How can I get it to convert Integer to Long?
I have tried adding the following
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type=”DECIMAL” hibernate-type=”java.lang.Long”></sql-type>
<sql-type jdbc-type=”INTEGER” hibernate-type=”java.lang.Long”></sql-type>
</type-mapping>
</hibernate-reverse-engineering>
to the hibernate.reveng.xml file.