Package org.omnifaces.persistence.audit
Annotation Type Audit
-
@Retention(RUNTIME) @Target(FIELD) public @interface Audit
Instructions:
- Extend
AuditListener - Declare that listener as
EntityListenerson your entity. - Put
Auditannotation 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
- Extend