Package com.axelor.db.annotations
Annotation Type Track
-
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Track
This annotation can be used onAuditableModelclasses to provide change track details.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description TrackMessage[]contentsThe body content to generate.TrackField[]fieldsThe fields to track.booleanfilesWhether to track attached files.TrackMessage[]messagesThe track messages to generate.TrackEvent[]onSpecify the events on which to track.booleansubscribeSubscribe for change notifications.
-
-
-
Element Detail
-
fields
TrackField[] fields
The fields to track.- Returns:
- the fields to track
- Default:
- {}
-
-
-
messages
TrackMessage[] messages
The track messages to generate.- Returns:
- the messages
- Default:
- {}
-
-
-
contents
TrackMessage[] contents
The body content to generate.- Returns:
- the body messages
- Default:
- {}
-
-
-
on
TrackEvent[] on
Specify the events on which to track.- Returns:
- the list of events
- Default:
- {com.axelor.db.annotations.TrackEvent.ALWAYS}
-
-