I am reading some text regarding entity beans in
EJB 2.0. In the section about
CMP and
BMP, the author said that both these kinds of beans have
ejbCreate(Integer id) and in either case, this method has to return the primary key.
The author gave a demo example, in case of BMP:
However, in case of CMP
So why in case of CMP, the
ejbCreate() does not return the
primary key? I have tested both these examples and things worked perfectly.