Won't Fix
Details
Assignee
Koen AersKoen AersReporter
Francois JeanFrancois JeanParticipants
Francois JeanHameem Mohamed MohideenKoen AersMax Rydahl AndersenComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Koen Aers
Koen AersReporter
Francois Jean
Francois JeanParticipants
Francois Jean
Hameem Mohamed Mohideen
Koen Aers
Max Rydahl Andersen
Components
Fix versions
Affects versions
Priority
Created May 5, 2006 at 5:30 PM
Updated December 5, 2024 at 1:23 PM
Resolved December 5, 2024 at 1:23 PM
Hello,
When using Oracle with columns of type NVARCHAR2, the reverse engineering tool maps the columns with a java attribute of type Serializable. We would prefer to have these columns mapped to String. However NVARCHAR2 has no corresponding JDBC type, so recognizing this type by Java would imply to verify the JDBC type and if the JDBC type is unknown then verify the type name and if it's VARCHAR2 than map it to String. Do you think it's a possible solution?
For now, we are doing the following in the reverse-eng.xml file, but it's not very neat since it maps all the "OTHER" types to String:
<type-mapping>
<sql-type jdbc-type="OTHER" hibernate-type="String" />
</type-mapping>
Link on Oracle listing the unsupported Oracle type:
http://download-east.oracle.com/docs/cd/B19306_01/java.102/b14355/apxref.htm#sthref2055
Link explaining the use of String with NVARCHAR2:
http://download-east.oracle.com/docs/cd/B19306_01/java.102/b14355/global.htm#sthref1624
François Jean