All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.beanvalidation.tck.tests.xmlconfiguration.user-constraints-MultipleGetterDefinitionTest.xml Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show 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="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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy