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"
SCJP, SCWCD, SCBCD
posted 16 years ago
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
Failure is not when you fall down; its only when you fail to get up again.
Now I am super curious what sports would be like if we allowed drugs and tiny ads.