[hibernate-issues] [Hibernate-JIRA] Created: (HV-45) @AssertFalse message interpolation is broken
Olle Hallin (JIRA)
noreply at atlassian.com
Thu Nov 8 17:49:29 EST 2007
@AssertFalse message interpolation is broken
--------------------------------------------
Key: HV-45
URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-45
Project: Hibernate Validator
Issue Type: Bug
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