Spec has no direct mention on Primary Key Field Type. But we can infer from other explanation that primkey-class value must always be a
Java Class. If your Primary key field is not a compound key and is basically a primitive type then you are supposed to wrap that in Wrapper class.
ejbCreate method should always be implemented to return Primary Key Class type. And in that case you should not define prim-key-field in DD. Hope this would clear your doubt.
It's very unfortunate that
HFEJB has not discussed about such things in it.
[ March 07, 2006: Message edited by: Bhanu P Jasthi ]