?? question.java
字號:
package cn.hxex.exam.model;
/**
* The pojo about Question
*
* @struts.form name="questionForm" extends="cn.hxex.exam.form.BaseForm"
*
* @author galaxy
*
*/
public abstract class Question extends Base
{
/**
* @hibernate.property column="TITLE"
*/
private String title;
/**
* @hibernate.property column="ANSWER"
*/
private String answer;
/**
* @hibernate.property column="SCORE"
*/
private Integer score;
/**
* @return Returns the answer.
*
* @struts.form-field form-name="questionForm"
*
* @struts.validator type="required"
*/
public String getAnswer()
{
return answer;
}
/**
* @param answer
* The answer to set.
*/
public void setAnswer(String answer)
{
this.answer = answer;
}
/**
* @return Returns the score.
*
* @struts.form-field form-name="questionForm"
*
* @struts.validator type="integer"
*/
public Integer getScore()
{
return score;
}
/**
* @param score
* The score to set.
*/
public void setScore(Integer score)
{
this.score = score;
}
/**
* @return Returns the title.
*
* @struts.form-field form-name="questionForm"
*
* @struts.validator type="required"
*/
public String getTitle()
{
return title;
}
/**
* @param title
* The title to set.
*/
public void setTitle(String title)
{
this.title = title;
}
private TestPaper testpaper;
/**
* Get the Testpaper about this question
*
* @hibernate.many-to-one column="PAPER_ID" cascade="none"
*
* @return the paper
*/
public TestPaper getTestpaper()
{
return testpaper;
}
public void setTestpaper(TestPaper testpaper)
{
this.testpaper = testpaper;
}
public abstract String getContent();
public abstract int getScore(String answer);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -