
org.hibernate.beanvalidation.tck.tests.xmlconfiguration.user-constraints-MissingClassNameOnBeanNodeTest.xml Maven / Gradle / Ivy
The newest version!
<?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="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 ignore-annotations="false"> <field name="lastname"> <constraint annotation="javax.validation.constraints.Pattern"> <message>Last name has to start with with a capital letter.</message> <element name="regexp">^[A-Z][a-z]+</element> </constraint> </field> </bean> </constraint-mappings>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy