?? testpaper.java
字號:
/*
* @(#)TestPaper.java Dec 14, 2006
* Copyright 2006 qingdaosoftware, Inc. All rights reserved
*/
package com.qrsx.exam.model;
import java.util.Set;
/**
*
* 功能:The test paper POJO
*
* <p><a href="com.qrsx.exam.model.TestPaper.java"> <i>View Source </i> </a></br>
*
* Company : QingdaoSoftware<br>
* Author : <a href="mailto:wxt1013@163.com">WangXitao</a></p>
* Version : 1.0<br>
* Date : Dec 14, 2006<br>
*
* @hibernate.class table="TEST_PAPER"
*
* @struts.form name="testPaperForm" extends="com.qrsx.exam.struts.form.BaseForm"
*
*/
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="com.qrsx.exam.model.SelectQuestion"
*/
private Set<SelectQuestion> selectquestions;
/**
* @hibernate.set cascade="all"
* @hibernate.key column="PAPER_ID"
* @hibernate.one-to-many class="com.qrsx.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 + -