Chiave primaria (l'id alfanumerico sul database)
package it.html.ejb.entity.bmp;
import java.io.Serializable;
public class AccountPK implements Serializable {
private String accountID;
public AccountPK(String id){
accountID=id;
}
public String getId(){
return accountID;
}
public String toString(){
return accountID;
}
public int hashCode(){
return accountID.hashCode();
}
public boolean equals(Object account){
return ((AccountPK)account).getId().equals(accountID);
}
}