?? shitioption.java
字號(hào):
package com.myExam.bean;
import java.io.Serializable;
/** 持久類試題項(xiàng)目 * @hibernate.class * table="shitioption" * dynamic-update="true" * dynamic-insert="true" */
public class ShitiOption implements Serializable {
/** 定義主鍵*/
private Integer id;
/** 定義試題Id*/
private int shitiId;
/** 定義試題項(xiàng)目名稱 */
private String name;
/** 定義是否正確答案 */
private int isok;
/** 構(gòu)造函數(shù) */
public ShitiOption(int shitiId, String name, int isok) {
this.shitiId = shitiId;
this.name = name;
this.isok = isok;
}
/**構(gòu)造函數(shù) */
public ShitiOption() {
}
/** 獲取主鍵 * @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;
}
/** 獲取試題id * @hibernate.property * column="shitiId" * length="4" * not-null="true" */
public int getShitiId() {
return this.shitiId;
}
//設(shè)定試題Id
public void setShitiId(int shitiId) {
this.shitiId = shitiId;
}
/** 獲取試題項(xiàng)目名稱 * @hibernate.property * column="name" * length="50" * not-null="true" * */
public String getName() {
return this.name;
}
//設(shè)定試題項(xiàng)目名稱
public void setName(String name) {
this.name = name;
}
/** 獲取是否試題正確答案 * @hibernate.property * column="idOk" * length="4" * not-null="true" * */
public int getIsok() {
return this.isok;
}
//設(shè)定是否試題正確答案
public void setIsok(int isok) {
this.isok = isok;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -