Hi,
the question is, if you have many realtions between the tables and what you want to achieve with your Hibernate application.
If there exists many associations and you want to use inheritance and have a really complex datamodel, I'd use single values primary keys.
However, if there are no associations between the tables, composite primary keys are just fine.
And if you do not know all the requirements of your Hibernate application by now I would also go for single valued primary keys.
Regards,
Joern
|