Joined: Tue Feb 26, 2013 4:35 am Posts: 1
|
Hi, I have following problem. I have a java.util.Date field in my entity which is temporary mapped as java.sql.Date
@Column @Temporal(TemporalType.DATE) private Date birthDay;
While getting my entity this field is of type java.sql.Date and does not have a time value. When i update it and get it once again this date has time value. Its also not type of java.sql.Date but java.util.Date. It happened after i added 2nd level cache. Any hint what is going on ? Why it added some dummy time to my date ?
Im using latest hibernate version 4.1.10.Final with hibernate-ehcache as cache implementation.
|
|