2013/08/19

hibernate Envers Audited 操作履歴

名前通り、操作の履歴を残す..............
keep a record of the changes made in domain entity

@Entity
@Audited
public class MyEntity {
   ...
}



For each audited entity,a table will be created,
which will hold the history of changes made to the entity



・呼び出す:
AuditReader reader = AuditReaderFactory.get( entityManager );
Event firstRevision = reader.find( Event.class, 2L, 1 );