I've been having ill luck while trying generate mapping files and pojos thru the reverse engineering process from my Oracle Database using Hibernate Tools. The process is being completed successfully but datatypes are a mess.
If I am having an attribute with type NUMBER(1) it is being mapped as java.lang.Boolean !! Where as I am expecting it to be mapped by long.
I have tried controlling the reverse engineering process using :
Code:
<type-mapping>
<sql-type jdbc-type="NUMERIC" precision='1' hibernate-type="long" />
</type-mapping>
But still nothing changes. I have tried with various datatypes like DECIMAL, INTEGER etc. also. It is still doing the default mapping. How can I correct this ?
Hibernate Tools Ver: 3.2.4,
Eclipse ver: 3.4.2,
Please guide.
Regards,
Rajesh Rapaka.