Your problem is most likely due to the fact that you are mixing dates and timestamps. Changing type createdDateto java.sql.Timestampshould solve your problem.
, MySQL 5.6.4, DateTime .
OP:
Java , :
createdDate = new Timestamp(new Date().getTime());
createdDate = new Timestamp(System.currentTimeInMilliseconds()); ?
, JodaTime, , , :)
, , Timestamp DB Datetime, , Datetime .
:
Oracle Date API:
Date()
Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond.
System.currentTimeInMilliseconds() - .
, SQL ( Java) CURRENT_TIMESTAMP, , . , Java . . , .