-->
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: Oracle via Middlegen to XML, Big Decimal
PostPosted: Mon Apr 04, 2005 4:19 am 
Newbie

Joined: Mon Apr 04, 2005 3:52 am
Posts: 1
Hi All,
does anyone know how to change the default mapping that middlegen uses while reading database schemas (Oracle 9i) to generate hibernate (2.0, *.hbm.xml) files.

I am using middlegen to connect to a oracle database. Several Datatypes at Oracle (Number, Fload, Integer) are converting into Big Decimal ony (e.g. Oracle "Number" should be mapped to Java "double")

[b]Oracle:[/b]
Create.......
VAR Number,
IMPORTID INTEGER
.....

[b]Hibernate xml:[/b]
<property
name="var"
type="java.math.BigDecimal"
column="VAR"
length="22"
>
<meta attribute="field-description">
@hibernate.property
column="VAR"
length="126"
</meta>
</property>

<key-property
name="importid"
column="IMPORTID"
type="java.math.BigDecimal"
length="22"
>
<meta attribute="field-description">
@hibernate.property
column="IMPORTID"
length="22"
</meta>
</key-property>

Can these preferences be changed via a config file or in some other place?

Any help in this will be highly appreciated.


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.