-->
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.  [ 2 posts ] 
Author Message
 Post subject: Get mapping files from an external jar
PostPosted: Thu Aug 26, 2010 5:13 am 
Newbie

Joined: Tue Aug 03, 2010 6:47 am
Posts: 2
Hi there,

I'm facing a problem with hibernate during the sql schema generation.

I've got hbm.xml files which have references to several classes that are located in an external .jar (available in the classpath).

When I launch the schema generation, I get :

Code:
ERROR [SchemaExport] Error creating schema
org.hibernate.MappingException: An association from the table MY_TABLE refers to an unmapped class: org.myProject.myPackage.MyClass
        at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1258)
   at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1176)
        ...


note : org.myProject.myPackage.MyClass is located in the external .jar.

Do you think it is possible to do this kind of references with Hibernate? How?

Thanks for your help.


Top
 Profile  
 
 Post subject: Re: Get mapping files from an external jar
PostPosted: Fri Mar 04, 2011 8:04 pm 
Newbie

Joined: Fri Mar 04, 2011 7:47 pm
Posts: 2
Hello,
Did you find an answer? I am running into the same issue.

Thanks,
A


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.