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

📄 studenttableid.java

📁 在线考试系统
💻 JAVA
字号:
package exam.dao;

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

public class StudentTableId implements java.io.Serializable {

	// Fields

	private Integer studentid;
	private Integer textpaperid;

	// Constructors

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

	/** full constructor */
	public StudentTableId(Integer studentid, Integer textpaperid) {
		this.studentid = studentid;
		this.textpaperid = textpaperid;
	}

	// Property accessors

	public Integer getStudentid() {
		return this.studentid;
	}

	public void setStudentid(Integer studentid) {
		this.studentid = studentid;
	}

	public Integer getTextpaperid() {
		return this.textpaperid;
	}

	public void setTextpaperid(Integer textpaperid) {
		this.textpaperid = textpaperid;
	}

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

		return ((this.getStudentid() == castOther.getStudentid()) || (this
				.getStudentid() != null
				&& castOther.getStudentid() != null && this.getStudentid()
				.equals(castOther.getStudentid())))
				&& ((this.getTextpaperid() == castOther.getTextpaperid()) || (this
						.getTextpaperid() != null
						&& castOther.getTextpaperid() != null && this
						.getTextpaperid().equals(castOther.getTextpaperid())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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