testpapertableid.java

来自「在线考试系统」· Java 代码 · 共 94 行

JAVA
94
字号
package exam.dao;

/**
 * TestpaperTableId entity. @author MyEclipse Persistence Tools
 */

public class TestpaperTableId implements java.io.Serializable {

	// Fields

	private Integer testpaperid;
	private Integer userid;
	private Integer questionid;

	// Constructors

	/** default constructor */
	public TestpaperTableId() {
	}

	/** full constructor */
	public TestpaperTableId(Integer testpaperid, Integer userid,
			Integer questionid) {
		this.testpaperid = testpaperid;
		this.userid = userid;
		this.questionid = questionid;
	}

	// Property accessors

	public Integer getTestpaperid() {
		return this.testpaperid;
	}

	public void setTestpaperid(Integer testpaperid) {
		this.testpaperid = testpaperid;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getQuestionid() {
		return this.questionid;
	}

	public void setQuestionid(Integer questionid) {
		this.questionid = questionid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TestpaperTableId))
			return false;
		TestpaperTableId castOther = (TestpaperTableId) other;

		return ((this.getTestpaperid() == castOther.getTestpaperid()) || (this
				.getTestpaperid() != null
				&& castOther.getTestpaperid() != null && this.getTestpaperid()
				.equals(castOther.getTestpaperid())))
				&& ((this.getUserid() == castOther.getUserid()) || (this
						.getUserid() != null
						&& castOther.getUserid() != null && this.getUserid()
						.equals(castOther.getUserid())))
				&& ((this.getQuestionid() == castOther.getQuestionid()) || (this
						.getQuestionid() != null
						&& castOther.getQuestionid() != null && this
						.getQuestionid().equals(castOther.getQuestionid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTestpaperid() == null ? 0 : this.getTestpaperid()
						.hashCode());
		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		result = 37
				* result
				+ (getQuestionid() == null ? 0 : this.getQuestionid()
						.hashCode());
		return result;
	}

}

⌨️ 快捷键说明

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