View Javadoc
1   package org.kuali.common.util.validate;
2   
3   import static java.lang.annotation.ElementType.TYPE;
4   import static java.lang.annotation.RetentionPolicy.RUNTIME;
5   
6   import java.lang.annotation.Documented;
7   import java.lang.annotation.Retention;
8   import java.lang.annotation.Target;
9   
10  import javax.validation.Constraint;
11  import javax.validation.Payload;
12  
13  @Target({ TYPE })
14  @Retention(RUNTIME)
15  @Constraint(validatedBy = UniqueFieldNamesValidator.class)
16  @Documented
17  public @interface UniqueFieldNames {
18  
19  	String message() default "field names must be unique";
20  
21  	Class<?>[] groups() default {};
22  
23  	Class<? extends Payload>[] payload() default {};
24  
25  }