crmemproleid.java

来自「基于SSH (struts+spring+hibernate)框架设计的 C」· Java 代码 · 共 76 行

JAVA
76
字号
package com.csu.crm.common.vo;

/**
 * CrmEmpRoleId generated by MyEclipse Persistence Tools
 */

public class CrmEmpRoleId implements java.io.Serializable {

	// Fields

	private CrmEmployee crmEmployee;

	private CrmRole crmRole;

	// Constructors

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

	/** full constructor */
	public CrmEmpRoleId(CrmEmployee crmEmployee, CrmRole crmRole) {
		this.crmEmployee = crmEmployee;
		this.crmRole = crmRole;
	}

	// Property accessors

	public CrmEmployee getCrmEmployee() {
		return this.crmEmployee;
	}

	public void setCrmEmployee(CrmEmployee crmEmployee) {
		this.crmEmployee = crmEmployee;
	}

	public CrmRole getCrmRole() {
		return this.crmRole;
	}

	public void setCrmRole(CrmRole crmRole) {
		this.crmRole = crmRole;
	}

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

		return ((this.getCrmEmployee() == castOther.getCrmEmployee()) || (this
				.getCrmEmployee() != null
				&& castOther.getCrmEmployee() != null && this.getCrmEmployee()
				.equals(castOther.getCrmEmployee())))
				&& ((this.getCrmRole() == castOther.getCrmRole()) || (this
						.getCrmRole() != null
						&& castOther.getCrmRole() != null && this.getCrmRole()
						.equals(castOther.getCrmRole())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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