Skip to content

Instantly share code, notes, and snippets.

@javamultiplex
Created September 27, 2017 14:41
Show Gist options
  • Save javamultiplex/e44ab5f80b5aea6e1fc4be13407b639a to your computer and use it in GitHub Desktop.
Save javamultiplex/e44ab5f80b5aea6e1fc4be13407b639a to your computer and use it in GitHub Desktop.
Employee Bean
package com.javamultiplex;
public class Employee {
private int id;
private String name;
private int age;
private String gender;
private String role;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
@Override
public String toString() {
return "Employee[id="+getId()+", name="+getName()+", gender="+getGender()+", age="+getAge()+", role="+getRole()+"]";
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment