📄 customerkey.java
字号:
package itso.ejb.model.entity;
/**
* Key class for Entity Bean: Customer
*/
public class CustomerKey implements java.io.Serializable {
static final long serialVersionUID = 3206093459760846163L;
/**
* Implementation field for persistent attribute: id
*/
public int id;
/**
* Creates an empty key for Entity Bean: Customer
*/
public CustomerKey() {
}
/**
* Creates a key for Entity Bean: Customer
*/
public CustomerKey(int id) {
this.id = id;
}
/**
* Returns true if both keys are equal.
*/
public boolean equals(java.lang.Object otherKey) {
if (otherKey instanceof itso.ejb.model.entity.CustomerKey) {
itso.ejb.model.entity.CustomerKey o =
(itso.ejb.model.entity.CustomerKey) otherKey;
return ((this.id == o.id));
}
return false;
}
/**
* Returns the hash code for the key.
*/
public int hashCode() {
return ((new java.lang.Integer(id).hashCode()));
}
/**
* Get accessor for persistent attribute: id
*/
public int getId() {
return id;
}
/**
* Set accessor for persistent attribute: id
*/
public void setId(int newId) {
id = newId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -