Please see below the coding, mapping and MySQL existing column of a table. I am just getting an err
User.Java
private Date time = null;
public Date getTime() {
time = new Date();
return time;
}
In hibernate mapping file
<property name="time" type="date" column="time"/>
MySQL table's column
time (DATETIME)
Error: Data truncation: Incorrect datetime value: '1364212575328' for column 'time'
1364212575=>Mon, 25 Mar 2013 11:56:15 GMT.