I\'m getting a SqlException on a PreparedStatement for violating a uniqueness constraint on a table (dupe key). Essentially my table looks like thi
SqlException
PreparedStatement
java.sql.Date extends java.util.Date but works differently: In SQL, DATE has no time. Therefore, the Java object also ignores hours, minutes, etc.
java.sql.Date
java.util.Date
DATE
Try java.sql.Timestamp instead but you may need a cast (in SQL) to convert it to DATETIME.
java.sql.Timestamp
DATETIME
Related: