?? surveychild.java
字號(hào):
package com.mySurvey.bean;
import java.io.Serializable;
/** * @hibernate.class * table="surveychild" * dynamic-update="true" * dynamic-insert="true" */
public class SurveyChild implements Serializable {
/**定義主鍵 */
private Integer id;
/** 定義調(diào)查項(xiàng)目id*/
private int surveyOptionId;
/**定義調(diào)查子項(xiàng)目名稱(chēng)*/
private String name;
/**定義填寫(xiě)方式*/
private int type;
/** 構(gòu)造函數(shù)*/
public SurveyChild(int surveyOptionId, String name, int type) {
this.surveyOptionId = surveyOptionId;
this.name = name;
this.type = type;
}
/** 構(gòu)造函數(shù)*/
public SurveyChild() {
}
/** 獲取主鍵 * @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="surveyOptionId" * length="4" * not-null="true" * */
public int getSurveyOptionId() {
return this.surveyOptionId;
}
//設(shè)定調(diào)查項(xiàng)目id
public void setSurveyOptionId(int surveyOptionId) {
this.surveyOptionId = surveyOptionId;
}
/** 獲取調(diào)查子項(xiàng)目的名稱(chēng) * @hibernate.property * column="name" * length="50" * not-null="true" */
public String getName() {
return this.name;
}
//設(shè)定調(diào)查子項(xiàng)目的名稱(chēng)
public void setName(String name) {
this.name = name;
}
/** 獲取填寫(xiě)方式 * @hibernate.property * column="option" * length="4" * not-null="true" * */
public int getType() {
return this.type;
}
//設(shè)定填寫(xiě)方式
public void setType(int type) {
this.type = type;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -