View Javadoc
1   package de.juplo.facebook.aspects;
2   
3   
4   import java.lang.annotation.ElementType;
5   import java.lang.annotation.Retention;
6   import java.lang.annotation.RetentionPolicy;
7   import java.lang.annotation.Target;
8   
9   /**
10   * @author Kai Moritz
11   */
12  @Target({ ElementType.FIELD })
13  @Retention(RetentionPolicy.RUNTIME)
14  public @interface Sanitize
15  {
16    int length() default 255; // in accordance to @Column(length)
17    boolean fail() default false;
18  }