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
This commit is contained in:
haseebahmad11
2018-02-14 05:49:46 +05:00
committed by Predrag Maric
parent 3d4a179ca3
commit bcc3b6ed95
7 changed files with 176 additions and 1 deletions
@@ -0,0 +1,62 @@
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;
}
}