如何更新Spring和JPA创建的数据库中的条目
我应该按年份在数据库中版本版本。因此,如果我从2023年开始收到一个新文件,则应根据年更改条目。我找不到任何对版本数据有用的东西。在大多数情况下,他们使用时间戳。但是,我不应该通过特定的时间网络来版本,而是到数据来的一年。每年可以更改数据,并且根据应修改记录的年份。
我正在使用JPA,Spring Boot,Spring Web,H2数据库和Spring Batch在Java上工作
i'm supposed to version the records in a database by year. so if i get a new file from the year 2023 the entries should be changed according to the year. i'm not finding anything useful to versioning data. in most cases, they use timestamps.but i'm not supposed to version the data by a specific timestemp but by the year the data is from. the data can be changed each year and according to the year the records should be modified.
i'm working on java with jpa, spring boot, spring web, h2 database and spring batch
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下选项可能很有用。
Below option may be useful.