📄 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;
/**构造函数*/
public Shiti(int shitiTypeId, String name, int shitiOption) {
this.shitiTypeId = shitiTypeId;
this.name = name;
this.shitiOption = shitiOption;
}
/** 构造函数*/
public Shiti() {
}
/** 获取主键 * @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;
}
/** 获取试题种类 * @hibernate.property * column="shitiTypeId" * length="4" * not-null="true" */
public int getShitiTypeId() {
return this.shitiTypeId;
}
//设定试题种类
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="shitiOption" * length="4" * not-null="true" */
public int getShitiOption() {
return this.shitiOption;
}
//设定试题类型
public void setShitiOption(int shitiOption) {
this.shitiOption = shitiOption;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -