nl.vpro.validation.LicenseId Maven / Gradle / Ivy
package nl.vpro.validation;
import java.lang.annotation.*;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* @author Michiel Meeuwissen
* @since 5.5
*/
@Target({ElementType.PARAMETER, FIELD})
@Retention(RUNTIME)
@Constraint(validatedBy = LicenseValidator.class)
@Documented
public @interface LicenseId {
String message() default "{nl.vpro.constraints.licenseId}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}