Java tutorial
/* * * The contents of this file are subject to the Apache 2.0 license you may not * use this file except in compliance with the License. * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * * * Copyright 2014 ESN Manager project (http: *www.esn-manager.org). * All rights reserved. Use is subject to license terms. * * * * Contributors list : * * William Bonnet wllmbnnt@gmail.com * */ package org.esnm.server.data.jpa.service; import java.io.Serializable; import org.springframework.util.Assert; public class PersonSearchCriteria implements Serializable { private static final long serialVersionUID = 1L; private String firstName; private String lastName; public PersonSearchCriteria() { } public PersonSearchCriteria(String firstName, String lastName) { Assert.notNull(firstName, "FirstName must not be null"); Assert.notNull(lastName, "LastName must not be null"); this.firstName = firstName; this.lastName = lastName; } public String getFirstName() { return this.firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return this.lastName; } public void setLastName(String lastName) { this.lastName = lastName; } }