com.ibm.websphere.samples.plantsbywebsphereejb
Class OrderItem.PK

java.lang.Object
  extended by 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

Field Summary
 java.lang.String inventoryID
           
 java.lang.String order_orderID
           
 
Constructor Summary
OrderItem.PK()
           
OrderItem.PK(java.lang.String inventoryID, java.lang.String argOrder)
           
 
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
 

Field Detail

inventoryID

public java.lang.String inventoryID

order_orderID

public java.lang.String order_orderID
Constructor Detail

OrderItem.PK

public OrderItem.PK()

OrderItem.PK

public OrderItem.PK(java.lang.String inventoryID,
                    java.lang.String argOrder)
Method Detail

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