/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package validacion;

import java.lang.annotation.Documented;
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;

/**
 *
 * @author armaf
 */
@Documented
@Constraint(validatedBy = ResitenciaValidador.class)
@Target({ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ResistenciaMinima {
    double min() default 1.0;
    String message() default "La resistencia no es válida.";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
