ejbCreate return type should be Primary Key
posted 11 years ago
For CMP beans, the Container is not interested in what you return as it is managing the persistence. So, the EJB spec helps everyone out by specifying that null must be returned. What happens behind the scenes is that 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.