<div dir="ltr">Hello,<div><br></div><div>Apologies  if I hijack this mailing list. Please redirect me to right DL / forum, if it is the case.</div><div><br></div><div>I would like to inquire if custom method resolution is within the scope of the spec (or exists already) for beans which don&#39;t exactly follow JavaBean convention. By custom, I mean <font face="monospace, monospace">name()</font> vs <font face="monospace, monospace">getName(). </font></div><div><font face="monospace, monospace"><br></font></div><div>I&#39;ve noticed, lately, the trend to use code generators (<a href="https://immutables.github.io/">Immutables</a>, <a href="http://freebuilder.inferred.org/">FreeBuilder</a>, <a href="https://github.com/google/auto/blob/master/value/userguide/index.md">AutoValue</a> etc.) for domain entities. By default they all use <font face="monospace, monospace">name() </font>for getters (instead of <font face="monospace, monospace">getName()</font>) :</div><div><br></div><div><span style="display:inline-block;padding:0px;margin:0px;vertical-align:bottom;overflow:visible;border-right:2px solid white;color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre">@FreeBuilder</span><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre">
</span><span style="font-family:&quot;Source Code Pro&quot;,monospace;color:rgb(0,0,0);font-size:13px;white-space:pre">public</span><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre"> </span><span style="border-bottom:1px dashed purple;color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre"><span>interface</span></span><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre"> Person {
<br></span></div><div><span style="font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre">  @NotBlank
  String name();
 </span></div><div><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre">  @Min(16) 
  </span><span style="font-family:&quot;Source Code Pro&quot;,monospace;color:rgb(0,0,0);font-size:13px;white-space:pre">int</span><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre"> age();

  ....</span><span style="color:rgb(0,0,0);font-family:&quot;Source Code Pro&quot;,monospace;font-size:13px;white-space:pre">
}</span><br></div><div><br></div><div>It would be nice if BeanValidation could support such use-case via pluggable (getter / setter) method resolver (for example).</div><div><br>Associated JIRA  ticket <a href="https://hibernate.atlassian.net/browse/HV-1363">HV-1363</a></div><div><br></div><div>Thanks in advance,</div><div>Andrei.</div></div>