如何在审核表中添加一个使用Hibernate Envers完成的操作(修改,创建,删除)的列?

发布于 2025-02-13 14:00:13 字数 239 浏览 1 评论 0 原文

我知道操作的类型表示像数字一样,但是我可以使它们以字符串类型(“ update / delete / insert”)出现,

我认为Rev或RevType显示了哪种操作类型(我尝试按照此顺序进行编辑,删除和插入结果)

这是我的product_aud

I know the type of operations are represented like numbers but can I make them appear as string type ("UPDATE / DELETE / INSERT")

I think rev or revtype show what type of operation is ( I tried edit, delete and insert in this order and that s the result )

This is my product_aud

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

习惯成性 2025-02-20 14:00:13

更改历史记录存储在与某些实例相对应的Some_entity_Aud表中。 some_entity_aud表有一个字段-RevType-由0到2​​:

  • 0-add
  • 1-mod
  • 2-del

The change history is stored in the SOME_ENTITY_AUD tables corresponding to the SomeEntity instances. The SOME_ENTITY_AUD table has a field - REVTYPE - Represented by numbers from 0 to 2:

  • 0-ADD
  • 1-MOD
  • 2-DEL

See more details in the same question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文