All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.beanvalidation.tck.tests.validation.Customer Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy