Wednesday, August 21, 2002 05:21 AM
I would like to know whether is there any difference in the ejbCreate() method for 2.0 ver than 1.1 ver for CMP entity bean as I have seen that..in weblogic samples the ejbCreate() method returns null while in EdRoman's Mastering EJB they return PK object creating it explicitly.. as far as I know in ver 1.1 we return null insteated of PK for CMP....pls clarify If I m wrong..
Re: <br>!_NEWLINE_! any difference in ejbCreate() method for CMP !_NEWLINE_!</br>
Thursday, August 22, 2002 03:40 AM
You can return whatever you want - the container will ignore it :-)
As defined in EJB 1.1 Spec, §9.4.2 the container has to return the primary key. So you can return null.