Joined: Fri Apr 13, 2007 10:58 am Posts: 10
|
Hello,
I have strange problem occuring when executing one of my test class in my project.
This is the snippet of Set mapping i am doing in my hibernate mapping file for Category1Category2.java model
<!-- bi-directional one-to-many association to
<set
name="category1category2Assocs"
lazy="false"
inverse="true"
cascade="none"
sort = "com.test.model.Category1Category2Assoc"
>
<key>
<column name="CAT1_CAT2_ID" />
</key>
<one-to-many
class="com.test.model.Category1Category2Assoc"
/>
</set>
Category1Category2Assoc.java and Category1Category2.java are related as mentioned in the mapping file.
When running my tests in Eclipse 3.2 WTP i get a ClassCastException when i iterate over the category1category2Assocs Set in one of my class
On the other hand when i run the same test from commandline i get the results without any errors.
I am using jdk 1.4.2_13
My class com.test.model.Category1Category2Assoc implements the Comparator interface.
So can you people help me rectify where and why the error is occuring..
Thanks
|
|