br.com.utfpr.porta.validacao.AtributoConfirmacao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tcc-porta-servico Show documentation
Show all versions of tcc-porta-servico Show documentation
Projeto serviço que realiza acesso ao banco de dados para o projeto API e web
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 extends Payload>[] payload() default {};
String atributo();
String atributoConfirmacao();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy