shititype.java
来自「简单的在线考试系统。用户注册、登陆、设定视图类型、种类、试题项目、试题题目、组织」· Java 代码 · 共 49 行
JAVA
49 行
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;
/**构造函数*/
public ShitiType(String name) {
this.name = name;
}
/** 构造函数*/
public ShitiType() {
}
/** 获取主键 * @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="name" * length="50" * not-null="true" */
public String getName() {
return this.name;
}
//设定试题种类名称
public void setName(String name) {
this.name = name;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?