Package com.axelor.db.annotations
Annotation Interface Track
This annotation can be used on
Model
classes to provide change track details.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe body content to generate.The fields to track.boolean
Whether to track attached files.The track messages to generate.Specify the event on which to track.boolean
Subscribe for change notifications.
-
Element Details
-
fields
TrackField[] fieldsThe fields to track.- Returns:
- the fields to track
- Default:
{}
-
messages
TrackMessage[] messagesThe track messages to generate.- Returns:
- the messages
- Default:
{}
-
contents
TrackMessage[] contentsThe body content to generate.- Returns:
- the body messages
- Default:
{}
-
subscribe
boolean subscribeSubscribe for change notifications.- Returns:
- true if marked for auto-subscribe
- Default:
false
-
files
boolean filesWhether to track attached files.- Returns:
- true if marked for tracking attachments
- Default:
false
-
on
TrackEvent onSpecify the event on which to track.- Returns:
- the event
- Default:
ALWAYS
-