From e35d1a8e181d06ccd20a39863120c863f5c5cffd Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 31 Aug 2007 01:00:14 +0000 Subject: Fix handling of date properties declared as "java.util.Date". DateTimeAdapter required instead. --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/amazon') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index 6188bfa..fc32e21 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -719,7 +719,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector { // Treat Date as a Timestamp since some databases make no // distinction. The DateTimeAdapter can be used to provide // more control over the desired precision. - if (desiredClass == Date.class || desiredClass == java.sql.Date.class) { + if (desiredClass == java.sql.Date.class) { actualClass = java.sql.Timestamp.class; suffix = "Timestamp"; } else if (desiredClass == String.class) { @@ -731,7 +731,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector { break; case TIME: - if (desiredClass == Date.class || desiredClass == java.sql.Time.class) { + if (desiredClass == java.sql.Time.class) { actualClass = java.sql.Time.class; suffix = "Time"; } else if (desiredClass == String.class) { @@ -743,7 +743,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector { break; case TIMESTAMP: - if (desiredClass == Date.class || desiredClass == java.sql.Timestamp.class) { + if (desiredClass == java.sql.Timestamp.class) { actualClass = java.sql.Timestamp.class; suffix = "Timestamp"; } else if (desiredClass == String.class) { -- cgit v1.2.3