?? exam.java
字號:
package com.myExam.bean;
import java.io.Serializable;
/** 試卷類 * @hibernate.class * table="exam" * dynamic-update="true" * dynamic-insert="true" */
public class Exam implements Serializable {
/**定義主鍵 */
private Integer id;
/** 定義試題種類id*/
private int shitiTypeId;
/**定義試卷名稱 */
private String name;
/** 定義試題數量 */
private int count;
/** 定義分數*/
private float fenshu;
/**構造函數*/
public Exam(int shitiTypeId, String name, int count, float fenshu) {
this.shitiTypeId = shitiTypeId;
this.name = name;
this.count = count;
this.fenshu = fenshu;
}
/** 構造函數 */
public Exam() {
}
/** 獲取主鍵 * @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="shitiTypeId" * length="4" * not-null="true" * */
public int getShitiTypeId() {
return this.shitiTypeId;
}
//設定試題種類id
public void setShitiTypeId(int shitiTypeId) {
this.shitiTypeId = shitiTypeId;
}
/** 獲取試卷名稱 * @hibernate.property * column="name" * length="50" * not-null="true" */
public String getName() {
return this.name;
}
//設定試卷名稱
public void setName(String name) {
this.name = name;
}
/** 獲取試題數量 * @hibernate.property * column="count" * length="4" * not-null="true" */
public int getCount() {
return this.count;
}
//設定試題數量
public void setCount(int count) {
this.count = count;
}
/** 獲取試題分數 * @hibernate.property * column="fenshu" * length="12" * not-null="true" */
public float getFenshu() {
return this.fenshu;
}
//設定試題分數
public void setFenshu(float fenshu) {
this.fenshu = fenshu;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -