Hibernate Team |
 |
Joined: Tue Aug 26, 2003 7:19 pm Posts: 2364 Location: Brisbane, Australia
|
Tools forum would have been better - lucky I spotted it .
----
Middlegen can create mappings for Composite keys in two formats that are support by Hibernate. The best format is the one you have show which it the external composite key. You could choose to have the integrated composite key generated instead. Deleting the composite key mapping section would appear to be wrong as you now have no key for the relational table. A key is required. You did not say why (,other than complexity,) you are removing the key form the entity mapping.
|
|