Audit in JPA, which is similar to Hibernate envers

Does JPA provide any specification for audit objects.

Currently, the problem is that we are using Hibernate envers to audit the object in our application. I want to get out of this and implement a solution that is common to the ORM level. since this is just for audit purposes, I have to use the Hibernate API in my application

+4
source share
2 answers

I don’t think there is anything in the specification, but ... if you are using the Hibernate JPA implementation, you can probably use the Envers project with your configuration. Looked and, of course, there is a guide for this:

JPA Hibernate Envers

+2

JPA Entity Listeners. 2.1 . 2.1 CDI

Hibernate JPA 2.1 4.3

+1

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


All Articles