com.ibm.websphere.samples.pbw.jpa
Class OrderItem.PK

java.lang.Object
  extended by com.ibm.websphere.samples.pbw.jpa.OrderItem.PK
All Implemented Interfaces:
Serializable
Enclosing class:
OrderItem

@Embeddable
public static class OrderItem.PK
extends Object
implements 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
 String inventoryID
           
 String order_orderID
           
 
Constructor Summary
OrderItem.PK()
           
OrderItem.PK(String inventoryID, String argOrder)
           
 
Method Summary
 boolean equals(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 String inventoryID

order_orderID

public String order_orderID
Constructor Detail

OrderItem.PK

public OrderItem.PK()

OrderItem.PK

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

equals

public boolean equals(Object otherKey)
Returns true if both keys are equal.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns the hash code for the key.

Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.