employeepk.java
来自「一个java 代码生成器」· Java 代码 · 共 69 行
JAVA
69 行
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 + =
减小字号Ctrl + -
显示快捷键?