|
From: <hib...@li...> - 2006-05-08 21:43:05
|
Author: max...@jb...
Date: 2006-05-08 17:43:02 -0400 (Mon, 08 May 2006)
New Revision: 9911
Modified:
trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java
Log:
more ejb3 cma.
Modified: trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java 2006-05-08 21:41:28 UTC (rev 9910)
+++ trunk/Hibernate3/src/org/hibernate/dialect/Dialect.java 2006-05-08 21:43:02 UTC (rev 9911)
@@ -112,8 +112,11 @@
return Hibernate.DOUBLE;
}
- // finally use the sqltype if == on Hibernate types did not find a match.
- if ( sqlType == Types.FLOAT || sqlType == Types.DOUBLE || sqlType == Types.NUMERIC || sqlType == Types.DECIMAL || sqlType == Types.REAL) {
+ // finally use the sqltype if == on Hibernate types did not find a match.
+ if ( sqlType == Types.NUMERIC ) {
+ return columnType; //because numeric can be anything
+ }
+ else if ( sqlType == Types.FLOAT || sqlType == Types.DOUBLE || sqlType == Types.DECIMAL || sqlType == Types.REAL) {
return Hibernate.DOUBLE;
}
else if ( sqlType == Types.BIGINT || sqlType == Types.INTEGER || sqlType == Types.SMALLINT || sqlType == Types.TINYINT ) {
|