📄 customerpk.java
字号:
/* * Generated by XDoclet - Do not edit! */package test.interfaces;/** * Primary key for Customer. * @xdoclet-generated at 22-10-04 * @copyright The XDoclet Team * @author XDoclet * @version 1.2.2 */public class CustomerPK extends java.lang.Object implements java.io.Serializable{ public java.lang.String id; public CustomerPK() { } public CustomerPK( java.lang.String id ) { this.id = id; } public java.lang.String getId() { return id; } public void setId(java.lang.String id) { this.id = id; } public int hashCode() { int _hashCode = 0; if (this.id != null) _hashCode += this.id.hashCode(); return _hashCode; } public boolean equals(Object obj) { if( !(obj instanceof test.interfaces.CustomerPK) ) return false; test.interfaces.CustomerPK pk = (test.interfaces.CustomerPK)obj; boolean eq = true; if( obj == null ) { eq = false; } else { if( this.id != null ) { eq = eq && this.id.equals( pk.getId() ); } else // this.id == null { eq = eq && ( pk.getId() == null ); } } return eq; } /** @return String representation of this pk in the form of [.field1.field2.field3]. */ public String toString() { StringBuffer toStringValue = new StringBuffer("[."); toStringValue.append(this.id).append('.'); toStringValue.append(']'); return toStringValue.toString(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -