org.esnm.server.data.jpa.service.EmployeeSearchCriteria.java Source code

Java tutorial

Introduction

Here is the source code for org.esnm.server.data.jpa.service.EmployeeSearchCriteria.java

Source

/*
 *
 * 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 EmployeeSearchCriteria implements Serializable {

    private static final long serialVersionUID = 1L;

    private String employeeNumber;

    public EmployeeSearchCriteria() {
    }

    public EmployeeSearchCriteria(String employeeNumber) {
        Assert.notNull(employeeNumber, "EmployeeNumber must not be null");
        this.employeeNumber = employeeNumber;
    }

    public String getEmployeeNumber() {
        return this.employeeNumber;
    }

    public void setEmployeeNumber(String employeeNumber) {
        this.employeeNumber = employeeNumber;
    }
}