Spring boot Hibernate Envers Audited customization

Viewed 17

I have below entity class

class Emp {
    private long id;
    private String name;
    private int salary;
}

for these class need audit table as below, which contains 1 extra column parent_id whose value will be primary key of emp table

ex audit table column

id(primary key), parent_id (Primary key of emp), rev, revtstmp, name, salary

0 Answers
Related