Re: [hibernate-dev] [Bean Validation] @Digits => @DecimalRepresentation

2009-02-19 Thread Hardy Ferentschik
On Wed, 18 Feb 2009 16:01:24 +0100, Emmanuel Bernard wrote: I am considering renaming @Digits to @DecimalRepresentation to make room for the plural form @interface DecimalRepresentations { DecimalRepresentation[] value() } Any better name? What' about @Number and @Numbers? --Hardy

Re: [hibernate-dev] [Bean Validation] Constraints plural

2009-02-19 Thread Hardy Ferentschik
On Wed, 18 Feb 2009 16:35:30 +0100, Emmanuel Bernard wrote: @Max.Plural( { @Max(30, groups=JoeSixPack.class), @Max(100, groups=PowerUser.class) } ) +1 for this approach from me as well. Instead of Plural we could also consider Many or Multiple. --Hardy

Re: [hibernate-dev] [Bean Validation] @Digits => @DecimalRepresentation

2009-02-19 Thread Emmanuel Bernard
this is not the semantic I would naturally apply to number. Not sure. On Feb 19, 2009, at 10:12, Hardy Ferentschik wrote: On Wed, 18 Feb 2009 16:01:24 +0100, Emmanuel Bernard > wrote: I am considering renaming @Digits to @DecimalRepresentation to make room for the plural form @interface De

Re: [hibernate-dev] [Bean Validation] Same instance validated only once and determinism

2009-02-19 Thread Hardy Ferentschik
On Wed, 18 Feb 2009 18:44:52 +0100, Emmanuel Bernard wrote: in the previous example, we would have two constraint violation reports: - c.b is invalid - d.b is invalid Can you tell me on which side you are? I agree there is a problem. I don't like the idea of getting two constraint vi

Re: [hibernate-dev] [Bean Validation] @Digits => @DecimalRepresentation

2009-02-19 Thread Hardy Ferentschik
On Thu, 19 Feb 2009 10:46:59 +0100, Emmanuel Bernard wrote: this is not the semantic I would naturally apply to number. Not sure. Why not? I think @Number or @Numeric would work quite well. I guess the "problem" is when you place either one of a String. I agree that @Number-/@NumericRep

Re: [hibernate-dev] Exception model

2009-02-19 Thread Hardy Ferentschik
On Wed, 18 Feb 2009 10:45:50 +0100, Emmanuel Bernard wrote: ???UnsupportedTypeException or should it be AmbiguousConstraintUsageException Or just AmbiguousConstraintException? Constraint implementation ConstraintInitializationException ???initialize() must raise a RTE w

Re: [hibernate-dev] [Bean Validation] Same instance validated only once and determinism

2009-02-19 Thread Emmanuel Bernard
On Feb 19, 2009, at 10:52, Hardy Ferentschik wrote: On Wed, 18 Feb 2009 18:44:52 +0100, Emmanuel Bernard > wrote: in the previous example, we would have two constraint violation reports: - c.b is invalid - d.b is invalid Can you tell me on which side you are? I agree there is a proble

Re: [hibernate-dev] [Bean Validation] Same instance validated only once and determinism

2009-02-19 Thread Hardy Ferentschik
On Thu, 19 Feb 2009 11:38:32 +0100, Emmanuel Bernard wrote: On Feb 19, 2009, at 10:52, Hardy Ferentschik wrote: On Wed, 18 Feb 2009 18:44:52 +0100, Emmanuel Bernard wrote: in the previous example, we would have two constraint violation reports: - c.b is invalid - d.b is invalid