surveyoption.java
来自「简单的网上调查系统。采用Spring+Hibernate方式设计架构。」· Java 代码 · 共 70 行
JAVA
70 行
package com.mySurvey.bean;
import java.io.Serializable;
/** * @hibernate.class * table="surveyoption" * dynamic-update="true" * dynamic-insert="true" */
public class SurveyOption implements Serializable {
/** 定义主键*/
private Integer id;
/** 定义调查id*/
private int surveyId;
/** 定义调查项目名称 */
private String name;
/** 构造函数*/
public SurveyOption(int surveyId, String name) {
this.surveyId = surveyId;
this.name = name;
}
/** 构造函数 */
public SurveyOption() {
}
/** 获取主键 * @hibernate.id * generator-class="native" * type="java.lang.Integer" * column="id" */
public Integer getId() {
return this.id;
}
//设定主键
public void setId(Integer id) {
this.id = id;
}
/** 获取调查id * @hibernate.property * column="surveyId" * length="4" * not-null="true" * */
public int getSurveyId() {
return this.surveyId;
}
//设定调查id
public void setSurveyId(int surveyId) {
this.surveyId = surveyId;
}
/** 获取调查项目名称 * @hibernate.property * column="name" * length="50" * not-null="true" */
public String getName() {
return this.name;
}
//设定调查项目名称
public void setName(String name) {
this.name = name;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?