posted 14 years ago
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:
And here is how it is mapped [mapping generated from Hibernate Tools],
Code:
I changed the type to 'timestamp' in mapping file, but it is still returning wrong date,
DEBUG - returning '2097-01-14 15:25:03' as column: CREATION8_10_0_