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.
|