testusertableid.java

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

JAVA
75
字号
package exam.dao;

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

public class TestuserTableId implements java.io.Serializable {

	// Fields

	private Integer testid;
	private Integer testpaperid;

	// Constructors

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

	/** full constructor */
	public TestuserTableId(Integer testid, Integer testpaperid) {
		this.testid = testid;
		this.testpaperid = testpaperid;
	}

	// Property accessors

	public Integer getTestid() {
		return this.testid;
	}

	public void setTestid(Integer testid) {
		this.testid = testid;
	}

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

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

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

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

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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