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

📄 abstractrolefunctionid.java

📁 利用STRUTS2+SPRING+HIBERNATE/IBATIS建立的基本开发框架
💻 JAVA
字号:
package com.sunwah.baseapp.system.model;

/**
 * AbstractRoleFunctionId entity provides the base persistence definition of the
 * RoleFunctionId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractRoleFunctionId implements java.io.Serializable {

	// Fields

	private Roles roles;

	private Functions functions;

	// Constructors

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

	public AbstractRoleFunctionId(Roles roles, Functions functions) {
		super();
		this.roles = roles;
		this.functions = functions;
	}

	public Roles getRoles() {
		return roles;
	}

	public void setRoles(Roles roles) {
		this.roles = roles;
	}

	public Functions getFunctions() {
		return functions;
	}

	public void setFunctions(Functions functions) {
		this.functions = functions;
	}

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

		return ((this.getRoles().getRoleId() == castOther.getRoles()
				.getRoleId()) || (this.getRoles().getRoleId() != null
				&& castOther.getRoles().getRoleId() != null && this.getRoles()
				.getRoleId().equals(castOther.getRoles().getRoleId())))
				&& ((this.getFunctions().getFunctionId() == castOther
						.getFunctions().getFunctionId()) || (this
						.getFunctions().getFunctionId() != null
						&& castOther.getFunctions().getFunctionId() != null && this
						.getFunctions().getFunctionId().equals(
								castOther.getFunctions().getFunctionId())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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