I have web application based on Boot 2.4.2 where I want to audit entity. When I run test which updates existing entity, I'm getting:

Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "REV"; SQL statement:
insert into revinfo (rev, revtstmp) values (null, ?) [23502-200]

It seems like some misconfiguration of hibernate + hibernate envers. Could you please double check it?

I prepared minimal sample here: https://github.com/pmihalcin/envers-revinfo

Comment From: wilkinsona

Spring Boot doesn't do anything with Hibernate Envers or Spring Data Envers. We have an open pull request to add support for auto-configuring it. In the meantime you will have to set things up yourself. Looking at your sample, you don't appear to be using Spring Data Envers and I didn't notice any configuration code. If you'd like some guidance on setting things up, please ask on Stack Overflow or on Gitter in the spring-data channel. You may also want to add your up-vote to this issue to improve the reference documentation.