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