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

📄 employeepk.java

📁 一个java 代码生成器
💻 JAVA
字号:
package com.entity.bmp;

import java.io.Serializable;
/**
 * This is the EmployeePK .
 *
 * @Author: Siddhartha P. Chandurkar
 * @version $ID: $
 *
 */
public class EmployeePK implements Serializable {

	//Attributes
	
	public java.lang.Integer deptId;
	
	public java.lang.Integer id;
	

	//CONSTRUCTORS
	/**
	 * Default Constructor
	 */
	public EmployeePK(){
	}
	public EmployeePK(java.lang.Integer _deptId ,java.lang.Integer _id){
		deptId = _deptId;
		id = _id;
		
	}

	//METHODS
	
      public java.lang.Integer getDeptId(){
		return deptId;
	}
	
      public java.lang.Integer getId(){
		return id;
	}
	

    /**
     * @see java.lang.Object#equals(Object)
     */
    public boolean equals(Object otherOb) {
         EmployeePK  other = (EmployeePK ) otherOb;

        return (
		

            (deptId.equals(other.deptId))  &&

            (id.equals(other.id)) 
        );
    }

    /**
     * hashCode
     */
    public int hashCode() {
        return ((deptId.hashCode()) ^(id.hashCode()) );
    }




  }

⌨️ 快捷键说明

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