I am using Spring Boot Data JPA. For few tables I don't need primary key. How could I achieve that? Is it possible?
Asked
Active
Viewed 2,058 times
1
-
Depends on the use case. If you don't need them to map to entities, they don't need a primary key. It will be easier if you provide an example, though – crizzis Apr 30 '21 at 18:10
-
1This answer might help: https://stackoverflow.com/questions/3820897/jpa-entity-without-id . – Vitor Santos Apr 30 '21 at 18:20
-
1Does this answer your question? [JPA entity without id](https://stackoverflow.com/questions/3820897/jpa-entity-without-id) – K.Nicholas Apr 30 '21 at 23:58