[hibernate-dev] MethodLevel Constraints for method level validations

Hardy Ferentschik hardy at hibernate.org
Fri Jul 8 10:12:06 EDT 2011


Good idea.


On Fri, 08 Jul 2011 16:02:03 +0200, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

> 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



More information about the hibernate-dev mailing list