-->
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.  [ 2 posts ] 
Author Message
 Post subject: Middlegen- Oracle9i NUMBER to Integer
PostPosted: Wed Nov 26, 2003 11:50 am 
Newbie

Joined: Wed Oct 22, 2003 1:07 pm
Posts: 10
I am usig Oracle9i Release 2 database and latest jdbc driver for that, ojdbc14.jar. I am using Middlegen to generate the Mapping files.

Problem is, Middlegen map all the columns of type NUMBER to java.math.BigDecimal. I want to map some columns to Integer.
I know you can change the java type manually in the GUI. But I have lot of tables with lot of columns in it which I want to be Integer. Is there any way for Middlegen to generate the mapping for NUMBER column type to Integer automatically? I have tried changing the precision and scale to (10,0) etc. but it still generate the java type to BigDecimal.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 27, 2003 1:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have added this type of facility to the TODO list. For the moment, I suggest you edit the preferences file Middlegen creates. It stores the types etc there ready for the next time it is run.


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

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.