org.hibernate.beanvalidation.tck.tests.validation.Customer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beanvalidation-tck-tests Show documentation
Show all versions of beanvalidation-tck-tests Show documentation
Jakarta Bean Validation TCK test suite
The newest version!
/**
* Jakarta Bean Validation TCK
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.beanvalidation.tck.tests.validation;
import java.util.HashSet;
import java.util.Set;
import javax.validation.Valid;
/**
* @author Hardy Ferentschik
*/
public class Customer implements Person {
private String firstName;
private String middleName;
private String lastName;
@Valid
private Set orders = new HashSet();
public void addOrder(Order order) {
orders.add( order );
}
public Set getOrders() {
return orders;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getMiddleName() {
return middleName;
}
public void setMiddleName(String middleName) {
this.middleName = middleName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
}