[hibernate-issues] [Hibernate-JIRA] Updated: (HV-45) @AssertFalse message interpolation is broken
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Mon Jul 20 10:45:12 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HV-45:
--------------------------------
Component/s: legacy
> @AssertFalse message interpolation is broken
> --------------------------------------------
>
> Key: HV-45
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-45
> Project: Hibernate Validator
> Issue Type: Bug
> Components: legacy
> Affects Versions: 3.0.0.ga
> Reporter: Olle Hallin
>
> I have an Address domain object, which shall contain at least one of the fields street, zip, city and so on.
> A completely empty address is not valid.
> So I added a validator method that checks the entire object:
> @AssertFalse(message = "The address is empty")
> @Transient
> public boolean isEmpty() {
> // return true if all fields are null or empty
> }
> The InvalidValue generated when validating an empty Address contains "empty The address is empty", where the prefix "empty " is derived from the method name isEmpty().
> I had expected the value "The address is empty".
--
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