package org.mowit.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import org.mowit.validator.MandatoryValidator;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER ,ElementType.CONSTRUCTOR})
@Constraint(validatedBy = MandatoryValidator.class)

/**
 * This annotation is to check positive values
 * @author snaceur
 * @version V1.0
 */
public @interface Positive {
	
	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
	
	String message() default "{The value should be positive.}";
}

@@ -293,25 +293,24 @@
 lidator.
-Mandatory
+Positive
 Validato
@@ -460,17 +460,16 @@
 y = 
-Mandatory
+Positive
 Vali

Update Positive.java