?? surveyoption.java
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -