📄 result.java
字号:
package model.vote.hibernate;
import java.io.Serializable;
import model.hr.hibernate.Employee;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class Result implements Serializable {
/** identifier field */
private Integer id;
/** persistent field */
private model.vote.hibernate.Choice choice;
/** persistent field */
private model.hr.hibernate.Employee employee;
/** full constructor */
public Result(model.vote.hibernate.Choice choice, model.hr.hibernate.Employee employee) {
this.choice = choice;
this.employee = employee;
}
/** default constructor */
public Result() {
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public model.vote.hibernate.Choice getChoice() {
return this.choice;
}
public void setChoice(model.vote.hibernate.Choice choice) {
this.choice = choice;
}
public model.hr.hibernate.Employee getEmployee() {
return this.employee;
}
public void setEmployee(model.hr.hibernate.Employee employee) {
this.employee = employee;
}
public String toString() {
return new ToStringBuilder(this)
.append("id", getId())
.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -