questiontypetableid.java

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

JAVA
75
字号
package exam.dao;

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

public class QuestiontypeTableId implements java.io.Serializable {

	// Fields

	private Integer questiontypeid;
	private Integer userid;

	// Constructors

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

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

	// Property accessors

	public Integer getQuestiontypeid() {
		return this.questiontypeid;
	}

	public void setQuestiontypeid(Integer questiontypeid) {
		this.questiontypeid = questiontypeid;
	}

	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 QuestiontypeTableId))
			return false;
		QuestiontypeTableId castOther = (QuestiontypeTableId) other;

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

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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