@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Change
Example usage:
@Change(id = "create-user-index", order = "2024-11-15-001", author = "john.doe")
public class CreateUserIndexChange {
@Apply
public void createIndex(MongoDatabase db) {
// Implementation
}
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
author
Author of this change.
|
java.lang.String |
id
Unique identifier for this change.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
transactional
Whether this change should run within a transaction if supported by the target system.
|
public abstract java.lang.String id
public abstract java.lang.String author
public abstract boolean transactional
false for operations that cannot be transactional (e.g., DDL in some databases).true if transactional execution is required, false otherwise