📄 surveychildcount.java
字号:
package com.mySurvey.bean;
import java.io.Serializable;
/** * @hibernate.class * table="surveychildcount" * dynamic-update="true" * dynamic-insert="true" * */
public class SurveyChildCount implements Serializable {
/** 定义主键*/
private Integer id;
/** 定义调查子项目的id */
private int surveyChildId;
/**定义被选中的次数*/
private int count = 0;
/** 构造函数 */
public SurveyChildCount(int surveyChildId, int count) {
this.surveyChildId = surveyChildId;
this.count = count;
}
/** 构造函数*/
public SurveyChildCount() {
}
/** 获取主键 * @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="surveyChildId" * length="4" * not-null="true" */
public int getSurveyChildId() {
return this.surveyChildId;
}
//设定调查子项目
public void setSurveyChildId(int surveyChildId) {
this.surveyChildId = surveyChildId;
}
/** 获取被选中次数 * @hibernate.property * column="count" * length="4" * not-null="true" */
public int getCount() {
return this.count;
}
//设定调查子项目被选中次数
public void setCount(int count) {
this.count = count;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -