package com.github.kazuki43zoo.core.validation;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Documented
@Constraint(validatedBy = {EqualsPropertyValuesValidator.class})
@Target({TYPE, ANNOTATION_TYPE})
@Retention(RUNTIME)
public @interface EqualsPropertyValues {
String message() default "{com.github.kazuki43zoo.core.validation.EqualsPropertyValues.message}";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
String property();
String comparingProperty();
@Target({TYPE, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@interface List {
EqualsPropertyValues[] value();
}
}