-->
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: Hibernate reverse engineering Composite Id 's
PostPosted: Thu Aug 28, 2008 8:48 am 
Newbie

Joined: Fri Aug 08, 2008 4:37 am
Posts: 5
I've got a problem when reverse engineering tables containing composite id's.
The table's are shown here: Image

As seen I have a 5 tables two of them has composite ids.
The first one UserInfo_x_Region refers to UserInfo and Region the second one UserInfo_x_Department referes to UserInfo_x_Region and Department.
Bus as the UserInfo_x_Region's primary key is a composite id the UserInfo_x_Department table has 3 foreign keys.

When generating hbm files with Detect many-to-many tables on i get the following error:
Code:
org.hibernate.MappingException: An association from the table UserInfo_X_Department refers to an unmapped class: XXX.XXX.UserInfoXRegion
An association from the table UserInfo_X_Department refers to an unmapped class:XXX.XXX.UserInfoXRegion
  <No message>


I am only generating the mapping files not the pojo's themselves, which is why i think it is odd.

I have an idea that this is the same issue as in http://forum.hibernate.org/viewtopic.php?p=2394040
But cannot find any JIRA issue on it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 6:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it jira with SQL DDL for creating the *minimal* tables that causes this problem. Thanks.

_________________
Max
Don't forget to rate


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.