Hi there,
I don't know why but hibernate tries to cast BigDecimal to one of my columns. This column is definied as Decimal(3,0) in my DB2 DB. So there can't be a BigDecimal.
hbm.xml
<composite-id name="Id" class="db2.P5Id">
....
<key-property name="land" type="int">
<column name="PFIELD1" precision="3"/>
</key-property>
....
</composite-id>
When I try to commit a query like
sf.createQuery("from P5 where type = 1 and land in (:cs)")
.setParameterList("cs", cses, Hibernate.INTEGER).list()
I get the ClassCastException. The provided Collection only has Integer values.