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

📄 abstractbooktagid.java.svn-base

📁 在线书库系统 查看图书 编写文章 管理员管理
💻 SVN-BASE
字号:
package StoryManage.Dal;

/**
 * AbstractBookTagId entity provides the base persistence definition of the
 * BookTagId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractBookTagId implements java.io.Serializable {

	// Fields

	private Integer userId;
	private Integer chapterId;

	// Constructors

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

	/** full constructor */
	public AbstractBookTagId(Integer userId, Integer chapterId) {
		this.userId = userId;
		this.chapterId = chapterId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getChapterId() {
		return this.chapterId;
	}

	public void setChapterId(Integer chapterId) {
		this.chapterId = chapterId;
	}

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

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getChapterId() == castOther.getChapterId()) || (this
						.getChapterId() != null
						&& castOther.getChapterId() != null && this
						.getChapterId().equals(castOther.getChapterId())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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