org.hibernate.beanvalidation.tck.tests.xmlconfiguration.user-constraints-MultipleGetterDefinitionTest.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beanvalidation-tck-tests Show documentation
Show all versions of beanvalidation-tck-tests Show documentation
Jakarta Bean Validation TCK test suite
<?xml version="1.0" encoding="UTF-8"?> <!-- Jakarta Bean Validation TCK License: Apache License, Version 2.0 See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. --> <constraint-mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://xmlns.jakarta.ee/xml/ns/validation/mapping validation-mapping-3.0.xsd" xmlns="https://xmlns.jakarta.ee/xml/ns/validation/mapping" version="3.0"> <default-package>org.hibernate.beanvalidation.tck.tests.xmlconfiguration</default-package> <bean class="User" ignore-annotations="false"> <getter name="firstname" ignore-annotations="true"> <constraint annotation="jakarta.validation.constraints.Size"> <message>Size is limited!</message> <groups> <value>org.hibernate.beanvalidation.tck.tests.xmlconfiguration.TestGroup</value> <value>jakarta.validation.groups.Default</value> </groups> <element name="max">10</element> </constraint> </getter> <getter name="firstname" ignore-annotations="true"> <constraint annotation="jakarta.validation.constraints.NotNull"> <message>Cannot be null</message> </constraint> </getter> </bean> </constraint-mappings>