<?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.1.xsd"
        version="1.1">

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

    <bean class="OrderService">
        <method name="getNumberOfOrders">
            <parameter type="int"/>
            <parameter type="boolean"/>
            <return-value>
                <constraint annotation="GenericAndCrossParameterConstraint"/>
            </return-value>
        </method>

        <method name="placeOrder">
            <parameter type="int"/>
            <parameter type="java.lang.String"/>
            <parameter type="int"/>
            <cross-parameter>
                <constraint annotation="GenericAndCrossParameterConstraint"/>
            </cross-parameter>
        </method>

        <method name="cancelOrder">
            <parameter type="int"/>
            <parameter type="java.lang.String"/>
            <cross-parameter>
                <constraint annotation="ComposedGenericAndCrossParameterConstraint"/>
            </cross-parameter>
        </method>
    </bean>
</constraint-mappings>
