-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Reverse Engineering Problem with Oracle JDBC Datatypes
PostPosted: Fri Oct 30, 2009 9:29 am 
Newbie

Joined: Fri Oct 30, 2009 8:58 am
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.