📄 employeepk.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 + -