Hi,
The PK can't b a primitive type. U cn use the wrapper classes, instead. ie, you can use Integer as the PK class, but not int.
***********************************************
The PK must contain all info to find an entity within the persistent data store. To du this, it must :
String or Wrapper classes of primitives
Or
b any legal type in RMI/IIOP other than primitive data type. In other words, it must be serializable.
provide a hashcode() and equals() method.
***********************************************
thanx/binoj