However int is invalid to be a PK, recall there is a mandatory element for entity bean in DD -- <prim-key-class>. As we say that is a "class", so the PK must be an "Object"
More you can think is: Recall there are 2 remove() from EJBHome, one takes handle and another takes PK as parameter. If the PK can be int, double, .. etc, I think we may need 8 more remove() so primitive type is not good to be a primary key
and if you want something close to a primitive type..wrap it up using the wrapper classes and use them as a primary key class ...ans convert it back using the toString() method. hope this helps thanks Pradeep
SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Don't get me started about those stupid light bulbs.