📄 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 + -