> -----Original Message-----
> From: Christophe Demez [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 12:19
> To: [EMAIL PROTECTED]
> Subject: ejbCreate() without argument
>
>
> Hi,
>
> Problem 1
> ---------------
>
> I have a Entity bean that has an attribute that must be
> managed by the bean.
>
> This attribute is the state of the bean (Started, Stoped,
> ....), but it is
> internaly managed.
> At the creation time, a state must be set.

What exactly is the problem? Just write:


void ejbCreate() {
    this.state = STATE_STARTED;
}


>
>
> Problem 2
> ---------------
>
> I have an Entity Bean without attribute (Not yet, I need to
> add attributes
> later, in the phase II of the project).
>
> But I cannot create the bean !!
> 1 - ejbCreate() without argument
> 2 - INSERT INTO Table () Values () is not a good SQL request !
>
>

The bean must have a primary key, which means the insert has at least one
value.


- Avi
--
And now for something completely different.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to