I am using Hibernate Envers for auditing purpose. At present my classes are generated by using hbm files. For using Envers the class must be annoted as
@Audited.Like belwo one
Code:
@Entity
@Audited
public class Honey
{
@Id
@GeneratedValue
private Integer id;
private String name;
private String taste;
//Getters and Setters goes here.
}
Now my question is how can i mention it in hbm file so that it will enables the entity to be audited bu usng hibernate envers.
In Simple terms My Question is "How can we do Envers hbm xml based configuration"