package com.dbs.consentServer.constraint;

import java.lang.annotation.*;

import com.dbs.consentServer.constraint.demo.UserValidateImpl;

import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * 애노테이션 테스트
 * 3자리 및 아이디 입력 시 에러 반환
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = UserValidateImpl.class)
@Documented
public @interface IUserValidate {
  String message() default "NOT valid dto";
  Class<?>[] groups() default {};
  Class<? extends Payload>[] payload() default {};
}