The following exception occurr when I execute quey.iterate.next() in a query to select object from the mapped table with composite keys and one of the keys beeing of type Date.
null=java.util.NoSuchElementException
The mapping is:
Code:
<hibernate-mapping>
<class name="processo.MovimentoProcesso" table="apoloes.movimento">
<composite-id>
<key-property name="codigoSecao" type="int">
<column name="CODSECAO" not-null="true"/>
</key-property>
<key-property name="codigoProcesso" type="int">
<column name="CODDOC" not-null="true"/>
</key-property>
<key-property name="dataMovimento" type="java.util.Date">
<column name="DTHRMOV" not-null="true"/>
</key-property>
</composite-id>
<property name="observacao" type="java.lang.String" >
<column name="OBS" length="250" not-null="true"/>
</property>
</class>
</hibernate-mapping>