How to put envers annotations into XML Mapping Metadata(orm.xml) file

前端 未结 1 1037
悲&欢浪女
悲&欢浪女 2020-12-11 13:43

In my application, I am using XML Mapping Metadata as an alternative to annotation. It worked fine for all the JPA annotations so far. However for Auditing, I am using Hibe

相关标签:
1条回答
  • 2020-12-11 13:52

    Currently that's not possible. Envers works by annotating POJOs only. There is a JIRA ticket to enable XML config, but it doesn't look like that feature will come anytime soon:

    https://hibernate.atlassian.net/browse/HHH-3887

    Anyway, if you want to use Envers, you'll have to go with annotations.

    0 讨论(0)
提交回复
热议问题