summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2007-08-31 01:00:14 +0000
committerBrian S. O'Neill <bronee@gmail.com>2007-08-31 01:00:14 +0000
commite35d1a8e181d06ccd20a39863120c863f5c5cffd (patch)
treeeec5906c46c6638207e665d66727c4dbd9e6c39f /src
parent51fb368d2899e42f667291c75a4e68291dbae205 (diff)
Fix handling of date properties declared as "java.util.Date". DateTimeAdapter required instead.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java6
1 files changed, 3 insertions, 3 deletions
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) {