I try to reverse engineer JPA entity classes from a Oracle 10g schema with the following hibernate.revenge.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<schema-selection match-schema="CRDE_ERFASSUNG" match-table="LS_LDP_.*" />
<type-mapping>
<sql-type jdbc-type="NUMERIC" precision="32" not-null="false" hibernate-type="java.lang.Long" />
<sql-type jdbc-type="NUMERIC" precision="1" hibernate-type="java.lang.Byte" />
</type-mapping>
</hibernate-reverse-engineering>
The appropriate DB columns are looking like this for instance
Code:
SATZ_ID|NUMBER(32,0)|NOT NULL|PK
Code:
RELATION_ART_ANF_CODE|NUMBER(1,0)|NULL
I know that in case of satz_id the precision will be gone but this is different chapter :-)
The classes are generated properly
but without the declared type mapping.
Am I doing something wrong?
I'm a using Eclipse 3.3.2, Hibernate-Core 3.2.2.Beta1, Oracle10g, ojdbc14.jar, JDK 1.5.0_14
Mario