Skip to content

Envers causes NULL not allowed for column "REV" when auditing simple entity #25068

@pmihalcin

Description

@pmihalcin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixfor: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions