com.ibm.websphere.samples.plantsbywebsphereejb
Class OrderItem.PK
java.lang.Object
com.ibm.websphere.samples.plantsbywebsphereejb.OrderItem.PK
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- OrderItem
public static class OrderItem.PK
- extends java.lang.Object
- implements java.io.Serializable
Composite Key class for Entity Bean: OrderItem
Key consists of essentially two foreign key relations, but is mapped
as foreign keys.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object otherKey)
Returns true if both keys are equal. |
int |
hashCode()
Returns the hash code for the key. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
inventoryID
public java.lang.String inventoryID
order_orderID
public java.lang.String order_orderID
OrderItem.PK
public OrderItem.PK()
OrderItem.PK
public OrderItem.PK(java.lang.String inventoryID,
java.lang.String argOrder)
equals
public boolean equals(java.lang.Object otherKey)
- Returns true if both keys are equal.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Returns the hash code for the key.
- Overrides:
hashCode
in class java.lang.Object