Quote:
... i am using same piece of code with Oracle With Hibernate to Map to DataBase . But i am facing problems with Oracle Date .
The Date field in the Hibernate Mappping file works fine with the MySql and SQL Server.
But for Oracle its causing a problem.
and how should we know what is the problem you've been facing with? Is there any exception? what is odd about Oracle's Date?
Is there any difference between the date you store in database and the date you retrieve? (a 1 day difference?)
If that's the case, the reason is Oracle does not have a only DATE type, it's DATE type is DATETIME type compared to other databases. And I believe there is a bug in Oracle's JDBC driver.
The solve the problem just disable "daylight saving" of the operating system which runs the Java application.