How come that java.sql.PreparedStatement#setDate on dateTime mysql column always results in Date format like 2012-10-16 00:00:00 without Time information ? I'm storing Date in a loop like this :
protected Date getIncrementedDateTime() {
additionalTime += 1000;
return new Date(System.currentTimeMillis() + additionalTime);
}
preparedStatement.setDate(j, new java.sql.Date(getIncrementedDateTime().getTime());
I debugged the values, but mysql database always have 2012-10-16 00:00:00 values.