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