📄 accountpk.java
字号:
/* * Generated by XDoclet - Do not edit! */package com.sample.cmp.account;/** * Primary key for Account. * @generated * @lomboz generated */public class AccountPK extends java.lang.Object implements java.io.Serializable{ public java.lang.Integer accountID; public java.lang.Integer userID; public AccountPK() { } public AccountPK( java.lang.Integer accountID,java.lang.Integer userID ) { this.accountID = accountID; this.userID = userID; } public java.lang.Integer getAccountID() { return accountID; } public java.lang.Integer getUserID() { return userID; } public void setAccountID(java.lang.Integer accountID) { this.accountID = accountID; } public void setUserID(java.lang.Integer userID) { this.userID = userID; } public int hashCode() { int _hashCode = 0; if (this.accountID != null) _hashCode += this.accountID.hashCode(); if (this.userID != null) _hashCode += this.userID.hashCode(); return _hashCode; } public boolean equals(Object obj) { if( !(obj instanceof com.sample.cmp.account.AccountPK) ) return false; com.sample.cmp.account.AccountPK pk = (com.sample.cmp.account.AccountPK)obj; boolean eq = true; if( obj == null ) { eq = false; } else { if( this.accountID != null ) { eq = eq && this.accountID.equals( pk.getAccountID() ); } else // this.accountID == null { eq = eq && ( pk.getAccountID() == null ); } if( this.userID != null ) { eq = eq && this.userID.equals( pk.getUserID() ); } else // this.userID == null { eq = eq && ( pk.getUserID() == 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.accountID).append('.'); toStringValue.append(this.userID).append('.'); toStringValue.append(']'); return toStringValue.toString(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -