I'm using hibernate 3.2. I map a column like that:
Code:
<property name="myDate" update="true" insert="true"
type="java.util.Calendar" not-null="false" />
Then I save object with myDate "Tue May 01 00:00:00 GMT 2007".
When I retrieve the data from HSQLDB myDate.getTime() returns : "Tue May 01 02:00:00 CEST 2007" (correct at my time zone).
From Oracle I get: "Tue May 01 00:00:00 CEST 2007" (incorrect - wrong time zone).In DB in Oracle myDate is TIMESTAMP WITH TIME ZONE. It is stored correctly.
How do I retrieve Calendar from Oracle correctly?