All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.utfpr.porta.validacao.AtributoConfirmacao Maven / Gradle / Ivy

The newest version!
package br.com.utfpr.porta.validacao;

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.OverridesAttribute;
import javax.validation.Payload;
import javax.validation.constraints.Pattern;

import br.com.utfpr.porta.validacao.validator.AtributoConfirmacaoValidator;

@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = { AtributoConfirmacaoValidator.class })
public @interface AtributoConfirmacao {

	@OverridesAttribute(constraint = Pattern.class, name = "message")
	String message() default "Atributos não conferem";
	
	Class[] groups() default {};
	Class[] payload() default {};
	
	String atributo();	
	String atributoConfirmacao();
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy