-->
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: An association from the table A refers to an unmapped class.
PostPosted: Tue Jun 16, 2009 6:32 am 
Beginner
Beginner

Joined: Mon Jan 05, 2009 7:08 am
Posts: 24
hello

I'm getting an error saying:

An association from the table B refers to an unmapped class A.

A is in dll A
B is in dll B

B.dll references A.dll and class A got loaded first before class B did. What can I do? Load both A.hbm.xml and B.hbm.xml from B.dll? That'd be ugly.

A is util library - and should not be under my control.
B is the client code, which is under my control.

Thanks


Top
 Profile  
 
 Post subject: Re: An association from the table A refers to an unmapped class.
PostPosted: Tue Jun 16, 2009 10:17 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Can you post the code where you build the session factory ? Your config file and the mappings would be helpful, too. If you load the assemblies with cfg.AddAssembly(), make sure, all mapping files have build action "Embedded Ressource".

_________________
--Wolfgang


Top
 Profile  
 
 Post subject: Re: An association from the table A refers to an unmapped class.
PostPosted: Tue Jun 16, 2009 10:19 am 
Beginner
Beginner

Joined: Mon Jan 05, 2009 7:08 am
Posts: 24
hello

problem solved, basically B.dll loads a bunch of mapping file and A.dll loads its own set of file.

B.dll references A.dll and ...

class B
{
IParentFromA objA
{
get .. set ...
}
}

And in B.dll initialization routines I basically need to load mapping file for objA as well.

Thanks


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.