⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testpaper.java

📁 struts+hibernate在线考试系统exam
💻 JAVA
字号:
package cn.hxex.exam.model;

import java.util.Set;

/**
 * The test paper POJO
 * 
 * @hibernate.class table="TEST_PAPER"
 * 
 * @struts.form name="testPaperForm" extends="cn.hxex.exam.form.BaseForm"
 * 
 * @author galaxy
 * 
 */
public class TestPaper extends Base
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * @hibernate.property column="TITLE"
	 */
	private String title;

	/**
	 * @hibernate.many-to-one column="TEACHER_ID" cascade="save-update"
	 * 
	 */
	private Teacher teacher;

	/**
	 * @hibernate.property column="EXAM_TIME"
	 */
	private Long examtime;

	/**
	 * @hibernate.set cascade="all"
	 * @hibernate.key column="PAPER_ID"
	 * @hibernate.one-to-many class="cn.hxex.exam.model.SelectQuestion"
	 */
	private Set<SelectQuestion> selectquestions;

	/**
	 * @hibernate.set cascade="all"
	 * @hibernate.key column="PAPER_ID"
	 * @hibernate.one-to-many class="cn.hxex.exam.model.YesNoQuestion"
	 */
	private Set<YesNoQuestion> yesnoquestions;

	/**
	 * Get the title about the test
	 * 
	 * @struts.form-field form-name="testPaperForm"
	 * 
	 * @struts.validator type="required"
	 * 
	 * @return title
	 */
	public String getTitle()
	{
		return title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	/**
	 * Get the teacher of this examination
	 * 
	 * @return
	 */
	public Teacher getTeacher()
	{
		return teacher;
	}

	public void setTeacher(Teacher teacher)
	{
		this.teacher = teacher;
	}

	/**
	 * Get the examination time.
	 * 
	 * @struts.form-field form-name="testPaperForm"
	 * 
	 * @struts.validator type="required,integer"
	 * 
	 * @return Returns the examtime.
	 */
	public Long getExamtime()
	{
		return examtime;
	}

	/**
	 * @param examtime
	 *            The examtime to set.
	 */
	public void setExamtime(Long examtime)
	{
		this.examtime = examtime;
	}

	/**
	 * @return Returns the selectquestions.
	 */
	public Set<SelectQuestion> getSelectquestions()
	{
		return selectquestions;
	}

	/**
	 * @param selectquestions
	 *            The selectquestions to set.
	 */
	public void setSelectquestions(Set<SelectQuestion> selectquestions)
	{
		this.selectquestions = selectquestions;
	}

	/**
	 * @return Returns the yesnoquestions.
	 */
	public Set<YesNoQuestion> getYesnoquestions()
	{
		return yesnoquestions;
	}

	/**
	 * @param yesnoquestions
	 *            The yesnoquestions to set.
	 */
	public void setYesnoquestions(Set<YesNoQuestion> yesnoquestions)
	{
		this.yesnoquestions = yesnoquestions;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -