import java.util.Arrays;\r
import java.util.Collection;\r
import java.util.Collections;\r
+import java.util.Date;\r
import java.util.HashMap;\r
import java.util.HashSet;\r
import java.util.IdentityHashMap;\r
}\r
}\r
\r
+ if (Date.class.isAssignableFrom(currentType)) {\r
+ Date d = (Date) o;\r
+ if (targetType == Date.class) {\r
+ return o;\r
+ } else if (targetType == java.sql.Date.class) {\r
+ return new java.sql.Date(d.getTime());\r
+ } else if (targetType == java.sql.Time.class) {\r
+ return new java.sql.Time(d.getTime());\r
+ } else if (targetType == java.sql.Timestamp.class) {\r
+ return new java.sql.Timestamp(d.getTime());\r
+ }\r
+ }\r
+\r
// convert from BLOB\r
if (targetType == byte[].class) {\r
if (Blob.class.isAssignableFrom(currentType)) {\r