📄 itemdetailpk.java
字号:
/*
* @author : Neelesh
* @Version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : ItemDetailPK.java
* Creation/Modification History :
*
* Neelesh 11-Jan-2003 Created
*
*/
package oracle.otnsamples.vsm.entities;
import java.io.Serializable;
/**
* Primary key class for ItemDetail bean. The key is made of item id and
* language id. Generated by Oracle9i JDeveloper Tool.
*/
public class ItemDetailPK implements Serializable {
public String itemID;
public String langID;
public ItemDetailPK( ) {
}
public ItemDetailPK( String itemID, String langID ) {
this.itemID = itemID;
this.langID = langID;
}
public boolean equals( Object other ) {
if ( other instanceof ItemDetailPK ) {
final ItemDetailPK otherItemDetailPK = (ItemDetailPK) other;
// The following assignment statement is auto-maintained
boolean areEqual = ( otherItemDetailPK.itemID.equals( itemID ) &&
otherItemDetailPK.langID.equals( langID ) );
return areEqual;
}
return false;
}
public int hashCode( ) {
// Add custom hashCode() impl here
return ( langID + itemID ).hashCode( );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -