user1459144
user1459144

Reputation: 2977

Envers audit entities

What is the better way to get list of audited entites? It is possible to use REVCHANGES table and look up all audited entytoes from this table but I belive that this is not best solution.

Thanks, Volodymyr

Upvotes: 0

Views: 446

Answers (1)

adamw
adamw

Reputation: 8636

Given Hibernate's Configuration object, you can call AuditConfiguration.getFor(cfg), and then the EntitiesConfigurations object to check if an entity is audited or not.

Note though that this is not an official API.

Upvotes: 1

Related Questions