<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">

    <default-package>org.hibernate.validator.internal.xml</default-package>

    <bean class="org.hibernate.validator.test.internal.xml.Person" ignore-annotations="false">
        <getter name="firstName">
            <constraint annotation="javax.validation.constraints.NotNull"/>
        </getter>
    </bean>

    <bean class="org.hibernate.validator.test.internal.xml.Customer" ignore-annotations="false"/>
</constraint-mappings>