Hi.. I am new to hibernate. I have a list box of skill list in which multiple skills can be chosen. In my POJO, there is a skillList of data type ArrayList. And in my mapping file, I have defined the same as:- <list name="skillList" cascade="all"> <key column="SKILLSET"/> <index column="idx1"/> <one-to-many class="java.util.ArrayList"/> </list>
I am not sure what has to be given here in the mapping. Please help me. I am getting the error as:- org.hibernate.MappingException: Association references unmapped class: java.util.ArrayList at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2399) at org.hibernate.cfg.HbmBinder.bindListSecondPass(HbmBinder.java:2250) at org.hibernate.cfg.HbmBinder$ListSecondPass.secondPass(HbmBinder.java:2745)
Thanks in advance.. Ramya
|