I'm leaning towards the inner annotations. They fix the um.... non-pretty :>) names and there is no doubt about the Plural intention.

John Griffin

On Feb 18, 2009 8:35am, Emmanuel Bernard <emman...@hibernate.org> wrote:
I have added the following plural forms

AssertFalses

AssertTrues

//Digits to be redefined

Futures

Maxs

Mins

NotNulls

Nulls

Pasts

Patterns

Sizes



As you can see not all names are pretty. Any improvement proposal?



Alternatively, we could define inner annotations to define the plural, ie



@interface Max {

String message() default "...";

Class groups() default {};



public static @interface Plural {

Max[] value();

}

}



@Max.Plural( {

@Max(30, groups=JoeSixPack.class),

@Max(100, groups=PowerUser.class)

} )



WDYT?

_______________________________________________

hibernate-dev mailing list

hibernate-dev@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/hibernate-dev

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to