Disable creation of _AUD tables with Hibernate Envers for entities?

Multi tool use
Multi tool use


Disable creation of _AUD tables with Hibernate Envers for entities?



How to disable creation of _AUD tables with Hibernate Envers for entities ?
I want do custom audit just by using the AuditListeners instead of allowing control to Hibernate to create tables.




1 Answer
1



Short answer: just do not mark your entities with @Audited annotation.


@Audited



Long one: you're probably mixing these concepts. Envers has nothing to do with EntityListeners, that is a hibernate concept. If you want to manually implement auditing you're probably don't need envers after all, just hibernate will be enough.


EntityListeners






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

4FSa24GtCcai2I7Naad79Ec8RVrN,K6YO sdQ8G,hNhXzj
vY P d5IuUg,EHr,KDI6FAQne,Ydfl0H1

Popular posts from this blog

Delphi Android file open failure with API 26

.

Amasya