Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我需要创建一个表(实体),其中 id 和 name 作为主键(复合主键)。我如何使用注释创建具有休眠功能的实体以支持它?
看看这个关于 Hibernate 中复合主键的教程:
http://www.ibm.com/developerworks/library/os-hibernatejpa/