Package com.axelor.db.annotations
Annotation Type Track
-
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Track
This annotation can be used onAuditableModel
classes to provide change track details.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description TrackMessage[]
contents
The body content to generate.TrackField[]
fields
The fields to track.boolean
files
Whether to track attached files.TrackMessage[]
messages
The track messages to generate.TrackEvent[]
on
Specify the events on which to track.boolean
subscribe
Subscribe 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}
-
-