A have set Envers in my Spring Boot project. Now I need to insert some data to my tables and I want to do it in Flyway migration script. But I have to ensure that these data will also be inserted to audit tables. Otherwise I can get errors like
javax.persistence.EntityNotFoundException: Unable to find XYZ with id 1
when browsing history with
Do I need to insert data to audit tables (and also to REVINFO table) manually in the migration script or is there any other option, which would engage Hibernate Envers to do it for me?