org.hibernate.beanvalidation.tck.tests.metadata
Interface Person

All Known Implementing Classes:
Customer, Man

public interface Person

Author:
Hardy Ferentschik

Nested Class Summary
static interface Person.PersonValidation
           
 
Method Summary
 int getAge()
           
 String getFirstName()
           
 String getLastName()
           
 String getMiddleName()
           
 

Method Detail

getFirstName

@NotEmpty(groups=Person.PersonValidation.class,
          payload=Severity.Info.class)
String getFirstName()

getMiddleName

@Size(min=3,
      message="must at least be {min} characters long")
String getMiddleName()

getLastName

@NotEmpty
String getLastName()

getAge

@CustomConstraint(validationAppliesTo=RETURN_VALUE)
int getAge()


Copyright © 2008-2013. All Rights Reserved.