Re: [hibernate-dev] Hibernate Validator: bean-level validation

2007-12-06 Thread Emmanuel Bernard
Would that help http://opensource.atlassian.com/projects/hibernate/browse/HV-22 a. can you expand your idea? b. not sure why this is a problem, because you are not validating property 'name', you're validation 'name' and 'age' alltogether, hence there is no property name On Dec 6, 2007, at

[hibernate-dev] Hibernate Validator: bean-level validation

2007-12-06 Thread Robert Spielmann
Hi all, I ran into some sort of problem while trying to use Hibernate Validator for context-based attribute validation. A property of the bean only had to be present under certain circumstances. I found two possible ways to deal with this: 1. Validate the aforementioned property using somethin