student.java
来自「MyEclipse6Java中文教程的代码」· Java 代码 · 共 73 行
JAVA
73 行
package dao;
/**
* Student entity.
*
* @author MyEclipse Persistence Tools
*/
public class Student implements java.io.Serializable {
// Fields
private Integer id;
private String username;
private String password;
private Integer age;
// Constructors
/** default constructor */
public Student() {
}
/** minimal constructor */
public Student(Integer id, String username, String password) {
this.id = id;
this.username = username;
this.password = password;
}
/** full constructor */
public Student(Integer id, String username, String password, Integer age) {
this.id = id;
this.username = username;
this.password = password;
this.age = age;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
public Integer getAge() {
return this.age;
}
public void setAge(Integer age) {
this.age = age;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?