See blog post https://christianoette.com/en/blog/blog-post/2022-05-10-hibernate-envers
This is a demo project to test auditing with hibernate envers. You can create orders and update them interactively.
The project has a swagger-ui and h2 console enabled.
@Audited fields are added to the order
@Entity
@Table(name = "orders")
public class Order {
//...
@Audited
@Column(name = "article")
@Enumerated(value = EnumType.STRING)
private Article article;
@Audited
@Column(name = "description")
private String description;
// ...
- Start
AuditApplication
- Go to http://localhost:8080 for testing
- Go to http://localhost:8080/h2-console to see the result