@Audited annotation in hibm hibernate file

I use Hibernate as my form in my application.

Now I want to integrate it with Envers. I am currently creating an object using hbm files. In this case, as I can mention in the hbm file that the class generates, should have @Audited annotation.

Thanks,
Narendra

+4
source share
1 answer

You do not need to mention this in HBM. In fact, I think it’s not even possible to map Envers-specific behavior to objects in HBM files. But don't worry: you can mix HBM mapping with Envers annotations. You just need to remember the correct configuration of the Hibernate main configuration file, as indicated in the Envers documentation: http://docs.jboss.org/hibernate/envers/3.6/reference/en-US/html_single/#config-basics

+1
source

Source: https://habr.com/ru/post/1335366/


All Articles