?? testpaper.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;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -