selected.java

来自「hibernate项目开发宝典该书籍的 源码」· Java 代码 · 共 90 行

JAVA
90
字号
package cn.hxex.exam.model;

/**
 * The pojo about Question
 * 
 * @hibernate.class table="SELECTED"
 * 
 * @author galaxy
 */
public class Selected extends Base implements Comparable
{
	/**
	 * @hibernate.property column="CONTENT"
	 */
	public String content;

	/**
	 * @hibernate.property column="ITEM"
	 */
	public String item;

	/**
	 * @hibernate.many-to-one column="QUESTION_ID"
	 */
	public SelectQuestion selectquestion;

	/**
	 * @return Returns the selectquestion.
	 */
	public SelectQuestion getSelectquestion()
	{
		return selectquestion;
	}

	/**
	 * @param selectquestion
	 *            The selectquestion to set.
	 */
	public void setSelectquestion(SelectQuestion selectquestion)
	{
		this.selectquestion = selectquestion;
	}

	/**
	 * @return Returns the content.
	 */
	public String getContent()
	{
		return content;
	}

	/**
	 * @param content
	 *            The content to set.
	 */
	public void setContent(String content)
	{
		this.content = content;
	}

	public int compareTo(Object o)
	{
		if (this == o)
			return 0;

		if (o == null)
			return 1;

		Selected s = (Selected) o;
		return getItem().compareTo(s.getItem());
	}

	/**
	 * @return Returns the item.
	 */
	public String getItem()
	{
		return item;
	}

	/**
	 * @param item
	 *            The item to set.
	 */
	public void setItem(String item)
	{
		this.item = item;
	}
}

⌨️ 快捷键说明

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