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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34717-2bef8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34717-2bef8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?