Hi everyone,
This seems like such a bonehead question, but I've been chasing my tail around a tree all day. I have a Struts 2 + Spring3/JPA/Hibernate application that inserts a large set into the DB. In the set is a Java util date. I've checked the date just before the Dao inserts the rows and all the dates have the correct times. After insert, all the rows in the Oracle DB have no time, just the date. It's as if the time is truncated, but no errors appear in the transaction.
I thought before I posted any code, I would ask the question to see if someone could suggest something I may have been overlooking? The DB is Oracle 10g. JPA 2.0. The Column has the annotation on it:
@Column(name = "READING_DATE")
@Temporal(TemporalType.DATE)
private Date readingDate;
Setting the Column type to TemporalType.TIMESTAMP results in a Hibernate exception
column READING_DATE. Found: date, expected: timestamp
Any/all replies are appreciated.