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

📄 poll.java

📁 近几年来
💻 JAVA
字号:
package tarena.pojo;

import java.io.Serializable;
import java.util.HashSet;

public class Poll implements Serializable {
	private int hashValue = 0;

	private java.lang.Integer id;

	private java.util.Set pollLineSet = new HashSet();

	private Teacher teacher;

	private Course course;

	private Classes classes;

	private java.util.Date createdDate;

	private java.util.Date checkedDate;

	private Person checkedPerson;

	private java.lang.Integer amount;

	private java.lang.Integer availableNum;

	private java.lang.Integer totalscore;

	private java.lang.Double avgScore;

	private java.lang.String status;

	public java.lang.String getStatus() {
		return status;
	}

	public void setStatus(java.lang.String status) {
		this.status = status;
	}

	public Poll() {
	}

	/**
	 * Constructor of AbstractPoll instances given a simple primary key.
	 * 
	 * @param id
	 */
	public Poll(java.lang.Integer id) {
		this.setId(id);
	}

	/**
	 * Return the simple primary key value that identifies this object.
	 * 
	 * @return java.lang.Integer
	 */
	public java.lang.Integer getId() {
		return id;
	}

	/**
	 * Set the simple primary key value that identifies this object.
	 * 
	 * @param id
	 */
	public void setId(java.lang.Integer id) {
		this.hashValue = 0;
		this.id = id;
	}

	public Classes getClasses() {
		return classes;
	}

	public void setClasses(Classes classes) {
		this.classes = classes;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public Teacher getTeacher() {
		return teacher;
	}

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

	/**
	 * Return the value of the created_date column.
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getCreatedDate() {
		return this.createdDate;
	}

	/**
	 * Set the value of the created_date column.
	 * 
	 * @param createdDate
	 */
	public void setCreatedDate(java.util.Date createdDate) {
		this.createdDate = createdDate;
	}

	/**
	 * Return the value of the amount column.
	 * 
	 * @return java.lang.Integer
	 */
	public java.lang.Integer getAmount() {
		return this.amount;
	}

	/**
	 * Set the value of the amount column.
	 * 
	 * @param amount
	 */
	public void setAmount(java.lang.Integer amount) {
		this.amount = amount;
	}

	/**
	 * Return the value of the available_num column.
	 * 
	 * @return java.lang.Integer
	 */
	public java.lang.Integer getAvailableNum() {
		return this.availableNum;
	}

	/**
	 * Set the value of the available_num column.
	 * 
	 * @param availableNum
	 */
	public void setAvailableNum(java.lang.Integer availableNum) {
		this.availableNum = availableNum;
	}

	/**
	 * Return the value of the totalScore column.
	 * 
	 * @return java.lang.Integer
	 */
	public java.lang.Integer getTotalscore() {
		return this.totalscore;
	}

	/**
	 * Set the value of the totalScore column.
	 * 
	 * @param totalscore
	 */
	public void setTotalscore(java.lang.Integer totalscore) {
		this.totalscore = totalscore;
	}

	/**
	 * Return the value of the avg_score column.
	 * 
	 * @return java.lang.Double
	 */
	public java.lang.Double getAvgScore() {
		return this.avgScore;
	}

	/**
	 * Set the value of the avg_score column.
	 * 
	 * @param avgScore
	 */
	public void setAvgScore(java.lang.Double avgScore) {
		this.avgScore = avgScore;
	}

	/**
	 * Return the value of the poll_id collection.
	 * 
	 * @return PollLine
	 */
	public java.util.Set getPollLineSet() {
		return this.pollLineSet;
	}

	/**
	 * Set the value of the poll_id collection.
	 * 
	 * @param pollLineSet
	 */
	public void setPollLineSet(java.util.Set pollLineSet) {
		this.pollLineSet = pollLineSet;
	}

	/**
	 * Implementation of the equals comparison on the basis of equality of the
	 * primary key values.
	 * 
	 * @param rhs
	 * @return boolean
	 */
	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof Poll))
			return false;
		Poll that = (Poll) rhs;
		if (this.getId() == null || that.getId() == null)
			return false;
		return (this.getId().equals(that.getId()));
	}

	/**
	 * Implementation of the hashCode method conforming to the Bloch pattern
	 * with the exception of array properties (these are very unlikely primary
	 * key types).
	 * 
	 * @return int
	 */
	public int hashCode() {
		if (this.hashValue == 0) {
			int result = 17;
			int idValue = this.getId() == null ? 0 : this.getId().hashCode();
			result = result * 37 + idValue;
			this.hashValue = result;
		}
		return this.hashValue;
	}

	public java.util.Date getCheckedDate() {
		return checkedDate;
	}

	public void setCheckedDate(java.util.Date checkedDate) {
		this.checkedDate = checkedDate;
	}

	public Person getCheckedPerson() {
		return checkedPerson;
	}

	public void setCheckedPerson(Person checkedPerson) {
		this.checkedPerson = checkedPerson;
	}
}

⌨️ 快捷键说明

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