?? shiti.java
字號:
package com.myExam.bean;
import java.io.Serializable;
/** 試題持久類 * @hibernate.class * table="shiti" * dynamic-update="true" * dynamic-insert="true" */
public class Shiti implements Serializable {
/** 定義主鍵*/
private Integer id;
/** 定義試題種類id*/
private int shitiTypeId;
/** 定義試題名稱*/
private String name;
/** 定義試題類型*/
private int shitiOption;
/**構(gòu)造函數(shù)*/
public Shiti(int shitiTypeId, String name, int shitiOption) {
this.shitiTypeId = shitiTypeId;
this.name = name;
this.shitiOption = shitiOption;
}
/** 構(gòu)造函數(shù)*/
public Shiti() {
}
/** 獲取主鍵 * @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;
}
/** 獲取試題種類 * @hibernate.property * column="shitiTypeId" * length="4" * not-null="true" */
public int getShitiTypeId() {
return this.shitiTypeId;
}
//設(shè)定試題種類
public void setShitiTypeId(int shitiTypeId) {
this.shitiTypeId = shitiTypeId;
}
/** 獲取試題名稱 * @hibernate.property * column="name" * length="50" * not-null="true" */
public String getName() {
return this.name;
}
//設(shè)定試題名稱
public void setName(String name) {
this.name = name;
}
/** 獲取試題類型 * @hibernate.property * column="shitiOption" * length="4" * not-null="true" */
public int getShitiOption() {
return this.shitiOption;
}
//設(shè)定試題類型
public void setShitiOption(int shitiOption) {
this.shitiOption = shitiOption;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -