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 !! I have tried using :
<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 ?
Please guide.
Regards, Rajesh Rapaka.
|