[hibernate-issues] [Hibernate-JIRA] Updated: (HV-522) Bean Validation should use java.beans.PropertyDescriptor

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Sep 27 15:46:37 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated HV-522:
---------------------------------

    Fix Version/s: 4.x

> Bean Validation should use java.beans.PropertyDescriptor
> --------------------------------------------------------
>
>                 Key: HV-522
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-522
>             Project: Hibernate Validator
>          Issue Type: Bug
>    Affects Versions: 4.0.0.Alpha1
>         Environment: Any
>            Reporter: Brian
>            Priority: Minor
>             Fix For: 4.x
>
>
> Right now, hibernate determines a matching getter and setters by matching methods that start with "get" and "set" or "is" and "set".  But the spec says that "is" should only be considered when the type is little boolean.  
> Hibernate should fail validation in this case because it doesn't match the spec:
> public Boolean isVariable()
> public Boolean setVariable()
> because in this case "is" should be "get" since it is not a little boolean.

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