Originally posted by cyril vidal:
Hi Van,
As far as I have understood, the primary key need to be a class. So you can't use int for this.
See 10.6.13 for more details.
Don't forget also that you have to fill a <prim-key-class> element in the Deployment descriptor.
Regards,
Cyril.
I agree with Cyril.Only Objects can be the primary key. Usually we use the wrapper classes. Note also, that the
EJB API methods accept/return java.lang.Object type for the primary key
