I am having an Oracle database which is storing date as 'dd-Mon-yy', example date is 14-JAN-97 03.25.03 PM.
When I am getting this data from Hibernate I get date as- '14 January 2097'. How do I correct this?
Here is debug output: DEBUG - returning '14 January 2097' as column: CREATION8_10_0_
However if I execute the SELECT query against database then I get correct date: 14-JAN-97 03.25.03 PM.
Here is how my field is defined in Oracle-
Code:
"CREATION_DATE" DATE
And here is how it is mapped [mapping generated from Hibernate Tools],
Code:
<property name="creationDate" type="date">
<column name="CREATION_DATE" length="7" />
</property>