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

📄 studentanswertableid.java

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

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

public class StudentAnswerTableId implements java.io.Serializable {

	// Fields

	private Integer studentanswerid;
	private String otheranswer;
	private Integer studentid;

	// Constructors

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

	/** full constructor */
	public StudentAnswerTableId(Integer studentanswerid, String otheranswer,
			Integer studentid) {
		this.studentanswerid = studentanswerid;
		this.otheranswer = otheranswer;
		this.studentid = studentid;
	}

	// Property accessors

	public Integer getStudentanswerid() {
		return this.studentanswerid;
	}

	public void setStudentanswerid(Integer studentanswerid) {
		this.studentanswerid = studentanswerid;
	}

	public String getOtheranswer() {
		return this.otheranswer;
	}

	public void setOtheranswer(String otheranswer) {
		this.otheranswer = otheranswer;
	}

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

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

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

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

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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