1

I am using Spring Boot Data JPA. For few tables I don't need primary key. How could I achieve that? Is it possible?

  • 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
  • 1
    This answer might help: https://stackoverflow.com/questions/3820897/jpa-entity-without-id . – Vitor Santos Apr 30 '21 at 18:20
  • 1
    Does 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

0 Answers0