?? 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;
/** 定義調(diào)查子項(xiàng)目的id */
private int surveyChildId;
/**定義被選中的次數(shù)*/
private int count = 0;
/** 構(gòu)造函數(shù) */
public SurveyChildCount(int surveyChildId, int count) {
this.surveyChildId = surveyChildId;
this.count = count;
}
/** 構(gòu)造函數(shù)*/
public SurveyChildCount() {
}
/** 獲取主鍵 * @hibernate.id * generator-class="native" * type="java.lang.Integer" * column="id" */
public Integer getId() {
return this.id;
}
//設(shè)定主鍵
public void setId(Integer id) {
this.id = id;
}
/** 獲取調(diào)查子項(xiàng)目id * @hibernate.property * column="surveyChildId" * length="4" * not-null="true" */
public int getSurveyChildId() {
return this.surveyChildId;
}
//設(shè)定調(diào)查子項(xiàng)目
public void setSurveyChildId(int surveyChildId) {
this.surveyChildId = surveyChildId;
}
/** 獲取被選中次數(shù) * @hibernate.property * column="count" * length="4" * not-null="true" */
public int getCount() {
return this.count;
}
//設(shè)定調(diào)查子項(xiàng)目被選中次數(shù)
public void setCount(int count) {
this.count = count;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -