將主要索引鍵新增至 JPA 實體

每個對映至關聯式資料庫的實體必須對映至表格中的主要索引鍵。

關於這項作業

EJB 3.0 規格支援三種不同的方式來指定實體身分:
  • @Id 註釋
  • @IDClass 註釋
  • @EmbeddedId 註釋
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: last_date

File name: t_add_primekey.html