<?xml version="1.0" encoding="UTF-8"?>
<constraint-mappings
        xmlns="http://jboss.org/xml/ns/javax/validation/mapping"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/mapping validation-mapping-1.0.xsd">

    <bean class="org.hibernate.validator.test.internal.xml.Customer" ignore-annotations="false">
        <getter name="firstName">
            <constraint annotation="javax.validation.constraints.Size">
                <element name="min">1</element>
                <element name="max">10</element>
            </constraint>
        </getter>
    </bean>
</constraint-mappings>
