[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-232) Support cross-parameter constraints

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Jan 27 07:55:12 EST 2012


    [ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45278#comment-45278 ] 

Hardy Ferentschik commented on BVAL-232:
----------------------------------------

_ at ParameterAssert_ might be a nice solution in case we want to keep this more open for now. 

> Support cross-parameter constraints
> -----------------------------------
>
>                 Key: BVAL-232
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-232
>             Project: Bean Validation
>          Issue Type: Sub-task
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>             Fix For: 1.1
>
>
> Do you think we should support the following?
> {code}@DateInOrder
> void bookHotel(@NotNull @Valid Customer customer, Date from, Date to);{code}
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list