Created
March 11, 2014 21:33
-
-
Save agoncal/9495544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// At the moment I generate this | |
@Documented | |
@Constraint(validatedBy = {}) | |
@Target( { METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) | |
@Retention(RUNTIME) | |
@ReportAsSingleViolation | |
public @interface URL { | |
String message() default "{org.mycompany.myproject.constraints.URL.message}"; | |
Class<?>[] groups() default { }; | |
Class<? extends Payload>[] payload() default { }; | |
} | |
// And I would like to get that | |
@Documented | |
@Constraint(validatedBy = {}) | |
@Target( { METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) | |
@Retention(RUNTIME) | |
@ReportAsSingleViolation | |
public @interface URL { | |
String message() default "{org.mycompany.myproject.constraints.URL.message}"; | |
Class<?>[] groups() default { }; | |
Class<? extends Payload>[] payload() default { }; | |
@Target( { METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) | |
@Retention(RUNTIME) | |
@Documented | |
public @interface List { | |
URL[] value(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment