Fixes issue 17058 Can't import products: No Dialect mapping for JDBC type
authorAdrián Romero <adrianromero@openbravo.com>
Mon, 09 May 2011 13:57:27 +0200
changeset 12069 c3b8fa166f26
parent 12068 cd6e4afe4afc
child 12070 70c1ea2cde5f
Fixes issue 17058 Can't import products: No Dialect mapping for JDBC type
A new mapping has been added for NVARCHAR for the Oracle dialog
src/org/openbravo/base/session/OBOracle10gDialect.java
--- a/src/org/openbravo/base/session/OBOracle10gDialect.java	Mon May 09 13:54:37 2011 +0200
+++ b/src/org/openbravo/base/session/OBOracle10gDialect.java	Mon May 09 13:57:27 2011 +0200
@@ -40,6 +40,8 @@
     super();
 
     registerHibernateType(Types.NUMERIC, StandardBasicTypes.LONG.getName());
+    registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName());
+    registerHibernateType(Types.NCHAR, StandardBasicTypes.STRING.getName());
 
     registerColumnType(Types.VARCHAR, 4000, "nvarchar2($l)");
     registerColumnType(Types.VARCHAR, 100, "varchar2($l)");