Hibernate 3.0.5
<property name="startDateTime" type="date"> <column name="START_DATE_TIME" length="12" /> </property> <property name="finishDateTime" type="date"> <column name="FINISH_DATE_TIME" length="12" /> </property>
Oracle PL/SQL Release 8.1.5.0.0
If I use the above mappings it should result in a java.util.Date object. This is ok, however when I try to reference the minutes, aDate.getMinutes(), I get an Unhandled Exception thrown: class java.lang.IllegalArgumentException
Does the Hibernate Date type ONLY query the date part (no time part) of an Oracle DATE column? Will I need to make schema changes to separate the date and time part for each column? Ie. START_DATE; START_TIME; FINISH_DATE; FINISH_TIME;
|