@@ -0,0 +1,599 @@
+package no.bekk.bekkopen.person;%0A%0Aimport javax.validation.Constraint;%0Aimport javax.validation.Payload;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.Target;%0A%0Aimport static java.lang.annotation.ElementType.*;%0Aimport static java.lang.annotation.RetentionPolicy.RUNTIME;%0A%0A@Target( %7B METHOD, FIELD, ANNOTATION_TYPE %7D)%0A@Retention(RUNTIME)%0A@Constraint(validatedBy = FodselsnummerValidator.class)%0Apublic @interface GyldigFodselsnummer %7B%0A%0A    String message() default %22Invalid f%C3%B8dselsnummer%22;%0A%0A    Class%3C?%3E%5B%5D groups() default %7B%7D;%0A%0A    Class%3C? extends Payload%3E%5B%5D payload() default %7B%7D;%0A%7D%0A

Create GyldigFodselsnummer.java