package salesdb;
/**
* Key class for Entity Bean: Purchase
*/
public class PurchaseKey implements java.io.Serializable {
static final long serialVersionUID = 3206093459760846163L;
/**
* Implementation field for persistent attribute: purchaseid
*/
public java.lang.Long purchaseid;
/**
* Creates an empty key for Entity Bean: Purchase
*/
public PurchaseKey() {
}
/**
* Creates a key for Entity Bean: Purchase
*/
public PurchaseKey(java.lang.Long purchaseid) {
this.purchaseid = purchaseid;
}
/**
* Returns true if both keys are equal.
*/
public boolean equals(java.lang.Object otherKey) {
if (otherKey instanceof salesdb.PurchaseKey) {
salesdb.PurchaseKey o = (salesdb.PurchaseKey) otherKey;
return ((this.purchaseid.equals(o.purchaseid)));
}
return false;
}
/**
* Returns the hash code for the key.
*/
public int hashCode() {
return (purchaseid.hashCode());
}
}