[hibernate-issues] [Hibernate-JIRA] Created: (BVAL-2) Is there a difference between the implicit default group given by {} and the explcitly specified group "default"?

Hardy Ferentschik (JIRA) noreply at atlassian.com
Wed Aug 27 11:46:29 EDT 2008


Is there a difference between the implicit default group given by {} and the explcitly specified group "default"?
-----------------------------------------------------------------------------------------------------------------

                 Key: BVAL-2
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-2
             Project: Bean Validation
          Issue Type: Task
          Components: spec-general
            Reporter: Hardy Ferentschik


The question is why is the the default value for groups not "default" instead of the empty array? I think the it would be more explicit to use "default".
Also if I do not specify a group and hence the default (empty array) applies, what does the corresponding ConstraintDescriptor.getGroups() return? An empty array or "default"? Or are we saying that the default group is to be treated separately from the explicitly specified group 'default'?

Emmanuel's reasoning behind the empty array was to keep it simple for annotation developers, one less thing to remember and typo to do. However, if we decide to treat the empty array and "default' the same way, I would opt for a explicit "default" string.
 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list