* BAEL-1343 MVC Architecture with Servlets and JSP code * BAEL-1343 code refactoring * BAEL-1343 code refactoring * BAEL-1343 updated code formatting * BAEL-1343 code refactoring
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;
|
|
}
|
|
}
|