@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ChangeUnit
Change| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
id
Change unit's id.
|
java.lang.String |
order
Sequence that provide correct order for change unit execution.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
author
Author of the changeset.
|
boolean |
failFast
If true, will make the entire migration to break if the change unit produce an exception or the validation doesn't
success.
|
boolean |
runAlways
Executes the change set on every Mongock's execution, even if it has been run before.
|
java.lang.String |
systemVersion
Specifies the software systemVersion on which the change unit is to be applied.
|
boolean |
transactional
If true, Mongock will try to run the changeUnit in a native transaction, if possible.
|
public abstract java.lang.String id
Equivalent to field `id` in ChangeSet annotation
ChangeSetpublic abstract java.lang.String order
Equivalent to field `order` in ChangeSet annotation and ChangeLog, as now there is only one "changeSet", annotated with @Execution
ChangeSetpublic abstract java.lang.String author
Equivalent to field `author` in ChangeSet annotation
ChangeSetpublic abstract boolean failFast
Equivalent to field `failFast` in ChangeSet annotation
ChangeSetpublic abstract boolean runAlways
Equivalent to field `runAlways` in ChangeSet annotation
ChangeSetpublic abstract java.lang.String systemVersion
Equivalent to field `systemVersion` in ChangeSet annotation
ChangeSet