com.kuliginstepan.mongration.annotation.Changeset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongration Show documentation
Show all versions of mongration Show documentation
MongoDB data migration tool for Spring Boot projects
package com.kuliginstepan.mongration.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
/**
* Annotation for marking method as changeset
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Changeset {
/**
* Author of the changeset
*
* @return author
*/
String author();
/**
* Default value is {@link Method#getName()}
*
* @return changeset id
*/
String id() default "";
/**
* Sequence that provide correct order for changesets. Sorted ascending. Must be unique within changelog
*
* @return changeset order
*/
int order();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy