Howdy,
I'm pretty sure that this hasn't changed with
EJB 2.0 -- the way it works is that BMP beans you MUST return the primary key, and with CMP, you return null (the Container then uses what you've specified as your primary key field (or, with a compound key, the CMP fields that together make up the primary key).
So, the return type of ejbCreate() is always *declared* as the primary key type, but with CMP you are supposed to return null (although some Containers won't complain if you return anything else, because it's ignored anyway, but we recommend that you ALWAYS follow the spec, to be safe and portable.)
cheers,
Kathy