org.hibernate.beanvalidation.tck.tests.xmlconfiguration.user-constraints-MultipleGetterDefinitionTest.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <constraint-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/mapping validation-mapping-1.0.xsd" xmlns="http://jboss.org/xml/ns/javax/validation/mapping"> <default-package>org.hibernate.beanvalidation.tck.tests.xmlconfiguration</default-package> <bean class="User" ignore-annotations="false"> <getter name="firstname" ignore-annotations="true"> <constraint annotation="javax.validation.constraints.Size"> <message>Size is limited!</message> <groups> <value>org.hibernate.beanvalidation.tck.tests.xmlconfiguration.TestGroup</value> <value>javax.validation.groups.Default</value> </groups> <element name="max">10</element> </constraint> </getter> <getter name="firstname" ignore-annotations="true"> <constraint annotation="javax.validation.constraints.NotNull"> <message>Cannot be null</message> </constraint> </getter> </bean> </constraint-mappings>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy