questionboundtableid.java

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

JAVA
75
字号
package exam.dao;

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

public class QuestionboundTableId implements java.io.Serializable {

	// Fields

	private Integer questionboundid;
	private Integer userid;

	// Constructors

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

	/** full constructor */
	public QuestionboundTableId(Integer questionboundid, Integer userid) {
		this.questionboundid = questionboundid;
		this.userid = userid;
	}

	// Property accessors

	public Integer getQuestionboundid() {
		return this.questionboundid;
	}

	public void setQuestionboundid(Integer questionboundid) {
		this.questionboundid = questionboundid;
	}

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

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

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

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

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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