-->
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.  [ 3 posts ] 
Author Message
 Post subject: Getting exception..help
PostPosted: Fri Jul 14, 2006 10:31 am 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
I am getting this exception..why it is being raised..thks
An association from the table TransportPackages refers to an unmapped class Destination..
the map file of TransportPackage class..
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace ="IVATBusinessLayer" assembly ="IVATBusinessLayer">
<class name="TransportPackage" table="TransportPackages">
<id name="m_TransportPackageID" column ="TransportPackageID" access ="field">
<generator class ="identity"></generator>
</id>

<property name="TransportPackageName" />
<many-to-one name="m_Destination" access ="field" class="Destination" column ="TransportPackageLocationID"/>


<property name="TransportPackageNoOfDays"/>
<!--<many-to-one name ="Category" column ="TransportPackageCategoryID"/>-->
<property name="TransportPackageDescription" column ="TransportPackageDescription"/>

</class>


Above m_destination is a private variable of type Destination in TransportPackage class
thks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 11:24 am 
Regular
Regular

Joined: Wed Jun 21, 2006 3:13 pm
Posts: 110
Do you have a mapping for Destination? Is it included as an embedded resource?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 12:13 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
ya,thks..i forget to do embedded resource..


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

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.