The situation in which the fields are uncertain when JPA is inserted into the database.

has anyone ever encountered a situation where the fields are uncertain when inserting into a database using Springboot JPA? for example, if you suddenly want to add a field and you have to change the entity class, is there any better way?
now you can only think of two kinds of
1: entity class settings plus a Stirng attribute, and put the added fields into string, inside
2:JDBC to write SQL

.
Jul.28,2021

uses the MongoTemplate class, and the entity class field can be defined as Map type. Just store it

Menu