[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-267) Provide a ConstraintViolationException builder to facilitate consumer code

Gunnar Morling (JIRA) noreply at atlassian.com
Mon Feb 27 14:54:48 EST 2012


    [ https://hibernate.onjira.com/browse/BVAL-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45718#comment-45718 ] 

Gunnar Morling commented on BVAL-267:
-------------------------------------

Antonio, maybe you could use {{@AssertTrue}} on a method implementing your complex constraint like this:

{code}
@AssertTrue(message="A complex business constraint has been violated")
public boolean isValid() {
    //complex business constraint logic
}
{code}

Would that help you?

> Provide a ConstraintViolationException builder to facilitate consumer code
> --------------------------------------------------------------------------
>
>                 Key: BVAL-267
>                 URL: https://hibernate.onjira.com/browse/BVAL-267
>             Project: Bean Validation
>          Issue Type: Improvement
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>


--
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