org.hibernate.beanvalidation.tck.tests.xmlconfiguration.constraintdeclaration.constraints-GroupIsNotAllowedAsElementNameTest.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.constraintdeclaration</default-package> <bean class="User" ignore-annotations="true"> <field name="lastname"> <constraint annotation="jakarta.validation.constraints.Pattern"> <message>Last name has to start with with a capital letter.</message> <element name="regexp">^[A-Z][a-z]+</element> <element name="groups"> <value>jakarta.validation.groups.Default</value> </element> </constraint> </field> </bean> </constraint-mappings>