-->
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: regarding hibernate exception
PostPosted: Fri Nov 09, 2012 3:05 am 
Newbie

Joined: Fri Nov 09, 2012 2:56 am
Posts: 1
Exception in thread "main" java.lang.ExceptionInInitializerError
at fd.social.Manager.UserManager.main(UserManager.java:15)
Caused by: org.hibernate.MappingException: Association references unmapped class: EamilDetail
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)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1177)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1333)
at fd.util.HibernateUtil.<clinit>(HibernateUtil.java:12)
... 1 more


user.java pojo class code is

private List<EamilDetail> eamilDetail=new ArrayList<EamilDetail>();

My Code in user.hbm.xml file

i wrote this in user class

<list name="eamilDetail" table="EmailDetails">
<key column="part_Time_User_Detail_ID"></key>
<index column="Email_Detail_ID" type="long"></index>
<one-to-many class="EamilDetail"/>
</list>


in EmailDetail.java pojo class code is

private PartTimeUserDetail partTimeUserDetail;


and in EmailDetail.hbm.xml Class


<many-to-one name="partTimeUserDetail" class="PartTimeUserDetail" column="part_Time_User_Detail_ID"
cascade="all"></many-to-one>



please tell me what is the error in this code


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.