63 lines
1.0 KiB
Java
63 lines
1.0 KiB
Java
|
package com.baeldung.model;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @author haseeb
|
||
|
*
|
||
|
*/
|
||
|
public class Student {
|
||
|
|
||
|
private int id;
|
||
|
private String firstName;
|
||
|
private String lastName;
|
||
|
|
||
|
public Student(int id, String firstName, String lastName) {
|
||
|
super();
|
||
|
this.id = id;
|
||
|
this.firstName = firstName;
|
||
|
this.lastName = lastName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return the id
|
||
|
*/
|
||
|
public int getId() {
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param id the id to set
|
||
|
*/
|
||
|
public void setId(int id) {
|
||
|
this.id = id;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return the firstName
|
||
|
*/
|
||
|
public String getFirstName() {
|
||
|
return firstName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param firstName the firstName to set
|
||
|
*/
|
||
|
public void setFirstName(String firstName) {
|
||
|
this.firstName = firstName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return the lastName
|
||
|
*/
|
||
|
public String getLastName() {
|
||
|
return lastName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param lastName the lastName to set
|
||
|
*/
|
||
|
public void setLastName(String lastName) {
|
||
|
this.lastName = lastName;
|
||
|
}
|
||
|
}
|