'How do I get the name of the audited table in RevisionInfo using Envers?

Intending to get the name of the table that was audited. Hopefully maybe by taking the object which is sent to revision info before it writes. Is there a way to do that.

@Entity
@RevisionEntity
@Table(name = "revision_info")
public class revision_info{ 

@Column(name = "tableName", length=36)
private String tableName=getTableName();

public revision_info() {
}


public String getTableName() {
    return tableName;   
}

public void setTableName(String tableName) {
    this.tableName = tableName;
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source