[hibernate-dev] MethodLevel Constraints for method level validations

Emmanuel Bernard emmanuel at hibernate.org
Fri Jul 8 15:02:39 EDT 2011


I've created http://opensource.atlassian.com/projects/hibernate/browse/BVAL-232

On 8 juil. 2011, at 21:02, Kevin Pollet wrote:

> +1
> Good idea!!
> 
> --Kevin
> 
> Le 8 juil. 2011 à 16:03, Emmanuel Bernard <emmanuel at hibernate.org> a écrit :
> 
>> Do you think we should support the following?
>> 
>> @DateInOrder
>> void bookHotel(@NotNull @Valid Customer customer, Date from, Date to);
>> 
>> ie like we have properly level and class level constraints, we could get method level constraints receiving all the parameters and raising constraints violations if necessary.
>> 
>> Emmanuel
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
> 
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev





More information about the hibernate-dev mailing list