cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evg...@apache.org
Subject svn commit: r943025 - /cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java
Date Tue, 11 May 2010 07:15:40 GMT
Author: evgeny
Date: Tue May 11 07:15:40 2010
New Revision: 943025

URL: http://svn.apache.org/viewvc?rev=943025&view=rev
Log:
version 2.0.4.6 Map tinyint to short

Modified:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java?rev=943025&r1=943024&r2=943025&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/cayenne/java/org/apache/cayenne/dba/TypesMapping.java
Tue May 11 07:15:40 2010
@@ -181,7 +181,7 @@ public class TypesMapping {
         sqlEnumJava.put(new Integer(Types.NUMERIC), JAVA_BIGDECIMAL);
         sqlEnumJava.put(new Integer(Types.REAL), JAVA_FLOAT);
         sqlEnumJava.put(new Integer(Types.SMALLINT), JAVA_SHORT);
-        sqlEnumJava.put(new Integer(Types.TINYINT), JAVA_BYTE);
+        sqlEnumJava.put(new Integer(Types.TINYINT), JAVA_SHORT);
         sqlEnumJava.put(new Integer(Types.TIME), JAVA_UTILDATE);
         sqlEnumJava.put(new Integer(Types.TIMESTAMP), JAVA_UTILDATE);
         sqlEnumJava.put(new Integer(Types.VARBINARY), JAVA_BYTES);
@@ -198,7 +198,7 @@ public class TypesMapping {
         javaSqlEnum.put(JAVA_FLOAT, new Integer(Types.FLOAT));
         javaSqlEnum.put(JAVA_INTEGER, new Integer(Types.INTEGER));
         javaSqlEnum.put(JAVA_SHORT, new Integer(Types.SMALLINT));
-        javaSqlEnum.put(JAVA_BYTE, new Integer(Types.TINYINT));
+        javaSqlEnum.put(JAVA_SHORT, new Integer(Types.TINYINT));
         javaSqlEnum.put(JAVA_TIME, new Integer(Types.TIME));
         javaSqlEnum.put(JAVA_UTILDATE, new Integer(Types.TIMESTAMP));
         javaSqlEnum.put(JAVA_TIMESTAMP, new Integer(Types.TIMESTAMP));



Mime
View raw message