📄 employee.java
字号:
package com.buat.employee;
import java.sql.Date;
public class Employee {
public int employeeId=0; //人员编号
public String name=null; //人员姓名
public String major=null; //人员工作
public String gender=null; //人员性别
public Date birthday=null; //出生年月
public int departmentId=0;
//所属部门
public Employee(int employeeId) {
super();
this.employeeId = employeeId;
}
public Employee() {
super();
// TODO Auto-generated constructor stub
}
public Employee(String name, String major, String gender, Date birthday, int departmentId) {
super();
this.name = name;
this.major = major;
this.gender = gender;
this.birthday = birthday;
this.departmentId = departmentId;
}
public Employee(int employeeId, String name, String major, String gender, Date birthday, int departmentId) {
super();
this.employeeId = employeeId;
this.name = name;
this.major = major;
this.gender = gender;
this.birthday = birthday;
this.departmentId = departmentId;
}
public int getEmployeeId() {
return employeeId;
}
public void setEmployeeId(int employeeId) {
this.employeeId = employeeId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMajor() {
return major;
}
public void setMajor(String major) {
this.major = major;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public int getDepartmentId() {
return departmentId;
}
public void setDepartmentId(int departmentId) {
this.departmentId = departmentId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -