Browse Source

Add class description

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.1-alpha
Pekka Helenius 4 years ago
parent
commit
3d12f60eae
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java

+ 5
- 0
bookstore/src/main/java/com/fjordtek/bookstore/annotation/CurrentYear.java View File

@ -11,6 +11,11 @@ import java.lang.annotation.Target;
import javax.validation.Constraint; import javax.validation.Constraint;
import javax.validation.Payload; import javax.validation.Payload;
/**
* The annotated element must be a year number equal or less than the current year.
*
* @author Pekka Helenius
*/
@Documented @Documented
@Constraint(validatedBy = CurrentYearValidator.class) @Constraint(validatedBy = CurrentYearValidator.class)
@Target( @Target(


Loading…
Cancel
Save