-->
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: Association refers to unmapped class exception
PostPosted: Thu Jul 25, 2013 9:49 pm 
Newbie

Joined: Thu Jul 25, 2013 9:36 pm
Posts: 1
First of all I'd like to thank everyone that's even reading this.

I'm trying to generate code for my application via reverse engineering tool but I'm getting this error:

Code:
org.hibernate.MappingException: An association from the table
module_application_status refers to an unmapped class: persistenceGen.ModuleApplication
An association from the table module_application_status refers to an unmapped class: persistenceGen.ModuleApplication


This is the part of my database diagram that generates the error:

Image

What seems to be happening is that the code generation treats the module_application table as a pure link table between module and application tables, not generating the ModuleAppication class.

There is probably a way of forcing the generation of this class without loosing the Application Set in the Module class, but as I'm still learning how to use the Hibernate, I don't know how. Can anyone help me with that? Any additional information requested will be promptly posted here.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.