haseebahmad11 bcc3b6ed95 BAEL-1343 MVC Architecture with Servlets and JSP code (#3624)
* 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
2018-02-14 01:49:46 +01:00

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;
}
}