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

📄 abstractcommendid.java.svn-base

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

/**
 * AbstractCommendId entity provides the base persistence definition of the
 * CommendId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractCommendId implements java.io.Serializable {

	// Fields

	private Integer adminId;
	private Integer storyId;

	// Constructors

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

	/** full constructor */
	public AbstractCommendId(Integer adminId, Integer storyId) {
		this.adminId = adminId;
		this.storyId = storyId;
	}

	// Property accessors

	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	public Integer getStoryId() {
		return this.storyId;
	}

	public void setStoryId(Integer storyId) {
		this.storyId = storyId;
	}

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

		return ((this.getAdminId() == castOther.getAdminId()) || (this
				.getAdminId() != null
				&& castOther.getAdminId() != null && this.getAdminId().equals(
				castOther.getAdminId())))
				&& ((this.getStoryId() == castOther.getStoryId()) || (this
						.getStoryId() != null
						&& castOther.getStoryId() != null && this.getStoryId()
						.equals(castOther.getStoryId())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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