[hibernate-issues] [Hibernate-JIRA] Commented: (HV-530) Explain propagation of redefined default groups across associated instances annotated with @Valid

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Nov 24 03:36:20 EST 2011


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

Hardy Ferentschik commented on HV-530:
--------------------------------------

The spec contains already an example btw.

> Explain propagation of redefined default groups across associated instances annotated with @Valid
> -------------------------------------------------------------------------------------------------
>
>                 Key: HV-530
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-530
>             Project: Hibernate Validator
>          Issue Type: Task
>          Components: documentation
>    Affects Versions: 4.2.0.Final
>            Reporter: Hardy Ferentschik
>             Fix For: 4.3.0.next
>
>
> The examples about default group sequencing do not mention that the default sequence only apply for constraints of the class or superclass. To associated entities only the group Default will be propagated. The spec says:
> {quote}
> @Valid is an orthogonal concept to the notion of group. If two groups are in sequence, the first group must pass for
> all associated objects before the second group is evaluated. Note however that the Default group sequence overriding
> is local to the class it is defined on and is not propagated to the associated objects. The following example illustrates
> this
> {quote}

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