Hibernate Team |
|
Joined: Tue Aug 26, 2003 7:19 pm Posts: 2364 Location: Brisbane, Australia
|
Yes composite keys are a pain. It also sounds like your database schema is not a good one. Currently there is no way to turn off composite key generation - not practical anyway - how do you automatically determine an appropriate key. Anyway, since you have your own rules for key selection, I would suggest you edit a copy of the velocity script. The composite key sections are obvious (and makes up a large portion of the script). This way you only edit one file rather than all of the hbm's.
|
|