<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The main problem is to differentiate a method from a getter in such universe where you throw the convention out the window.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 14 Jun 2017, at 06:12, Andrei Sereda &lt;<a href="mailto:andrei@sereda.cc" class="">andrei@sereda.cc</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">Apologies &nbsp;if I hijack this mailing list. Please redirect me to right DL / forum, if it is the case.</div><div class=""><br class=""></div><div class="">I would like to inquire if custom method resolution is within the scope of the spec (or exists already) for beans which don't exactly follow JavaBean convention. By custom, I mean <font face="monospace, monospace" class="">name()</font> vs <font face="monospace, monospace" class="">getName().&nbsp;</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class="">I've noticed, lately, the trend to use code generators (<a href="https://immutables.github.io/" class="">Immutables</a>, <a href="http://freebuilder.inferred.org/" class="">FreeBuilder</a>, <a href="https://github.com/google/auto/blob/master/value/userguide/index.md" class="">AutoValue</a> etc.) for domain entities. By default they all use <font face="monospace, monospace" class="">name() </font>for getters (instead of <font face="monospace, monospace" class="">getName()</font>) :</div><div class=""><br class=""></div><div class=""><span style="display: inline-block; padding: 0px; margin: 0px; vertical-align: bottom; overflow: visible; border-right-width: 2px; border-right-style: solid; border-right-color: white; font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">@FreeBuilder</span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">
</span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">public</span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class=""> </span><span style="border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: purple; font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class=""><span class="">interface</span></span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class=""> Person {
<br class=""></span></div><div class=""><span style="font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre" class="">  @NotBlank
  String name();
 </span></div><div class=""><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">  @Min(16) 
  </span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">int</span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class=""> age();

  ....</span><span style="font-family: 'Source Code Pro', monospace; font-size: 13px; white-space: pre;" class="">
}</span><br class=""></div><div class=""><br class=""></div><div class="">It would be nice if BeanValidation could support such use-case via pluggable (getter / setter) method resolver (for example).</div><div class=""><br class="">Associated JIRA &nbsp;ticket <a href="https://hibernate.atlassian.net/browse/HV-1363" class="">HV-1363</a></div><div class=""><br class=""></div><div class="">Thanks in advance,</div><div class="">Andrei.</div></div>
_______________________________________________<br class="">beanvalidation-dev mailing list<br class=""><a href="mailto:beanvalidation-dev@lists.jboss.org" class="">beanvalidation-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</div></blockquote></div><br class=""></div></body></html>