I've got a problem when reverse engineering tables containing composite id's.
The table's are shown here:
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.