001/*
002 * Copyright 2006-2007 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.batch.sample.domain.football;
018
019import java.io.Serializable;
020
021@SuppressWarnings("serial")
022public class Player implements Serializable {
023        
024        private String id; 
025        private String lastName; 
026        private String firstName; 
027        private String position; 
028        private int birthYear; 
029        private int debutYear;
030        
031        @Override
032        public String toString() {
033                
034                return "PLAYER:id=" + id + ",Last Name=" + lastName +
035                ",First Name=" + firstName + ",Position=" + position + 
036                ",Birth Year=" + birthYear + ",DebutYear=" + 
037                debutYear;
038        }
039        
040        public String getId() {
041                return id;
042        }
043        public String getLastName() {
044                return lastName;
045        }
046        public String getFirstName() {
047                return firstName;
048        }
049        public String getPosition() {
050                return position;
051        }
052        public int getBirthYear() {
053                return birthYear;
054        }
055        public int getDebutYear() {
056                return debutYear;
057        }
058        public void setId(String id) {
059                this.id = id;
060        }
061        public void setLastName(String lastName) {
062                this.lastName = lastName;
063        }
064        public void setFirstName(String firstName) {
065                this.firstName = firstName;
066        }
067        public void setPosition(String position) {
068                this.position = position;
069        }
070        public void setBirthYear(int birthYear) {
071                this.birthYear = birthYear;
072        }
073        public void setDebutYear(int debutYear) {
074                this.debutYear = debutYear;
075        }
076        
077        
078        
079        
080        
081
082}