I created <a href="https://hibernate.onjira.com/browse/BVAL-332">https://hibernate.onjira.com/browse/BVAL-332</a> for this.<div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/9 Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I like your first option too. Can you also add an issue at the spec level? Ideally do a pull request. <div>
<div class="h5"><br><br>On 9 nov. 2012, at 19:01, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt; wrote:<br><br></div></div></div><div><div class="h5"><blockquote type="cite">
<div><p>Hi all,</p>
<p>I&#39;m about to implement group conversion via @ConvertGroup in the RI.</p>
<p>I&#39;m wondering how we should deal with situations where @ConvertGroup is given for a one property of a base class and again on a sub-class (same for interface and impl):</p>
<p>public class Foo {</p>
<p>    @Valid<br>
    @ConvertGroup(from=Default.class, to=AnotherGroup.class)<br>
    Bar getBar() { ... }<br>
}</p>
<p>public class Baz extends Foo {</p>
<p>    @Override<br>
    @Valid<br>
    @ConvertGroup(from=SomeGroup.class, to=YetAnotherGroup.class)<br>
    Bar getBar() { ... }<br>
}</p>
<p>AFAICS we&#39;ve got the following options here (in descending order of my preference):</p>
<p>* Merge all the conversions for a property from the hierarchy (so behavior is the same as when all conversions would have been given in one place using @ConvertGroup.List)<br>
* Consider only the top/bottom most conversion rule from the inheritance hierarchy<br>
* Allow only one conversion for a property in the hierarchy, throw an exception if multiple conversions are given</p>
<p>Any thoughts?</p>
<p>--Gunnar</p>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>beanvalidation-dev mailing list</span><br><span><a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss.org</a></span><br>
<span><a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a></span><br></div></blockquote></div><br>_______________________________________________<br>

beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
<br></blockquote></div><br></div>