Package com.axelor.db.annotations
Annotation Type Track
-
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Track
This annotation can be used onModel
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 event 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 event on which to track.- Returns:
- the event
- Default:
- com.axelor.db.annotations.TrackEvent.ALWAYS
-
-