surveychildcount.java
来自「简单的网上调查系统。采用Spring+Hibernate方式设计架构。」· Java 代码 · 共 66 行
JAVA
66 行
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 + =
减小字号Ctrl + -
显示快捷键?