com.ibm.websphere.samples.pbw.jpa
Class OrderItem.PK
java.lang.Object
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
Method Summary |
boolean |
equals(Object otherKey)
Returns true if both keys are equal. |
int |
hashCode()
Returns the hash code for the key. |
inventoryID
public String inventoryID
order_orderID
public String order_orderID
OrderItem.PK
public OrderItem.PK()
OrderItem.PK
public OrderItem.PK(String inventoryID,
String argOrder)
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.