Package org.omnifaces.persistence.audit
Annotation Interface Audit
Instructions:
- Extend
AuditListener
- Declare that listener as
EntityListeners
on your entity. - Put
Audit
annotation on column of interest. - Profit.
Usage example:
@Entity @EntityListeners(YourAuditListener.class) public class YourEntity extends BaseEntity<Long> { @Audit @Column private String email; // ... }
- Author:
- Bauke Scholtz