-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: One to many mapping class problem
PostPosted: Tue Aug 30, 2011 12:14 am 
Newbie

Joined: Mon Aug 29, 2011 11:49 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.