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

📄 testpapertableid.java

📁 在线考试系统
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -