Hello,
We recently upgraded to start using ojdbc7.jar (12C) in place of ojdbc14.jar.
We use TemporalType.DATE in lot of our beans to store only date part of a date value. Everything was working fine.
But as soon as we moved to new ojdbc7.jar our persistence started saving time also in all the date fields. A lot of our logic compares date and now all those logic is failing.
Is there any fix for this? Or are we doing anthing wrong?
Here are some more details
Server - Tomcat 7
Hibernate version -
Code:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.6.8.Final</version>
</dependency>
JDBC -
Code:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc7</artifactId>
<version>12.1.0.2</version>
</dependency>
Also we have a tomcat jdbc entry -
Code:
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
<version>7.0.19</version>
</dependency>
So one of our attributes are defined as
Code:
@Temporal(TemporalType.DATE)
@Column(name = "SETTLE_DT")
private Date settleDate;
Now till we were using jdbc14 it was only storing date part and time was converted to all zeros. But now it also stores time part (which gets passed form system timestsamp).
Thanks
Himanshu
Any pointers will be helpful.