These questions are easy :-)
Christophe Demez wrote:
>
> Hi,
>
> During the creation of my EJB the following error occur :
>
> I have this method :
>
> Long ejbCreate() {
> return null;
> }
>
> I have several realted questions :
> - Do I need to return a key ?
No. Returning null is perfect. But before you return , the property
containing the PrimaryKey should already contain the right value !
> - Can I use AutoNumber in my database
I can't see how. I remember some discussion going on about this. Check
the archives. I think the outcome was, that you will not be able to use
anything like autonumber.
> - If I do not use AutoNumber and I m unable to give a key, does JBoss will
> generate one for me ?
nope. But you could set up some sort of key generator (we did this based
on another CMP bean).
You also could pass the PrimaryKey from the outside to the create
method. FOR TESTING purposes you could just generate random numbers.
WHICH of the other questions you posted are still a problem ?
C ya,
Tobias
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]