<div dir="ltr"><div dir="ltr">Juliano,<div><br></div><div>This question would be better suited for the WildFly community (see <a href="https://wildfly.org/gethelp/">https://wildfly.org/gethelp/</a>). On first thought I&#39;d expect the constraint to be validated only once, but it&#39;s hard to tell without knowing more details (where exactly is that constraint placed etc.)</div><div><br></div><div>--Gunnar</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 29. Apr. 2019 um 20:12 Uhr schrieb Juliano &lt;<a href="mailto:julianomqs@gmail.com">julianomqs@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Sorry if this is the wrong place to post this.</div><div><br></div><div>I&#39;m developing a JAX-RS webservice endpoint, and I&#39;m using BeanValidation to validate a bean sent as a method parameter to a POST method, like this:</div><div><br></div><div>@POST<br></div><div>public void save(@NotNull @Valid Customer customer) {</div><div>    // ... more code ....</div><div>}</div><div><br></div><div>Then I noticed a custom constraint I created was being executed twice within that bean.</div><div><br></div><div>Is this the default behavior?</div><div><br></div><div>Can constraints be executed more than once?</div><div><br></div><div>INFO: I&#39;m using BeanValidation 2.0 with WildFly 16.</div><div><br></div><div>Thanks a lot.</div><div><br></div><div><div><div dir="ltr" class="gmail-m_5246043363157558375gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif">Atenciosamente,<br><br></span><span style="font-family:arial,helvetica,sans-serif">Juliano Marques</span><span style="font-family:arial,helvetica,sans-serif"><br><br></span><span style="font-family:arial,helvetica,sans-serif"></span></div></div></div></div></div></div></div></div><div id="gmail-m_5246043363157558375DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid rgb(211,212,222)">
        <tbody><tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" target="_blank"><img alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Livre de vírus. <a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a>.                 </td>
        </tr>
</tbody></table>
<a href="#m_5246043363157558375_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a></blockquote></div>