<div dir="ltr">I&#39;ll go for the second notation (the one with the inner annotation).<br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 5:35 PM, Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have added the following plural forms<br>
AssertFalses<br>
AssertTrues<br>
//Digits to be redefined<br>
Futures<br>
Maxs<br>
Mins<br>
NotNulls<br>
Nulls<br>
Pasts<br>
Patterns<br>
Sizes<br>
<br>
As you can see not all names are pretty. Any improvement proposal?<br>
<br>
Alternatively, we could define inner annotations to define the plural, ie<br>
<br>
@interface Max {<br>
 &nbsp;String message() default &quot;...&quot;;<br>
 &nbsp;Class&lt;?&gt; groups() default {};<br>
<br>
 &nbsp;public static @interface Plural {<br>
 &nbsp; &nbsp; Max[] value();<br>
 &nbsp;}<br>
}<br>
<br>
@Max.Plural( {<br>
 &nbsp; @Max(30, groups=JoeSixPack.class),<br>
 &nbsp; @Max(100, groups=PowerUser.class)<br>
} )<br>
<br>
WDYT?<br>
_______________________________________________<br>
hibernate-dev mailing list<br>
<a href="mailto:hibernate-dev@lists.jboss.org" target="_blank">hibernate-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br>
</blockquote></div><br></div>