79123479

Date: 2024-10-24 20:13:38
Score: 1
Natty:
Report link

Is it necessary to register all the columns that exist in the table in the Entity class or is it enough to register only those that interest me?

A: No, it is not necessary to register all the columns that exist in the table in the JPA entity class. You can map only the columns that are of interest to you in your application. JPA will only interact with the columns you define in the entity class.

Now for the error, with the info you have shared, it seems like you need to disable auto ddl generation : spring.jpa.hibernate.ddl-auto=none

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: itssoumen