Adding a primary key to the JPA entity
Every entity that is mapped to a relational database must have a mapping to a primary key in the table.
About this task
- @Id annotation
- @IDClass annotation
- @EmbeddedId annotation
Every entity that is mapped to a relational database must have a mapping to a primary key in the table.