Rickard Öberg wrote:
>
> Hi!
>
> Alexander ten Bruggencate wrote:
> >
> > I'm having trouble creating and instance of my homemade PersonBean.
> > The problem is that i want cmp to instanciate the primary key.
> >
> > All i want to do is call ejbCreate(), i think my xml files are set up
> > correctly it's just that i don't have examples how _exactly_ my bean
> > constructor should look like.
>
> You are in charge of creating id's. The ejbCreate() method must have the
> same parameters as the create() method in the home interface.
>
Hi,
i understand they must have the same parameters, but i want the
container to DYNAMICLY assign an ID on creation.
for example: if the ID is an int then how possibly can i, the developer,
know the next possible free ID?
I don't even WANT to know the next possible free ID. That's what CMP is
for.
from what I understand this is possible, i'm hoping someone on this list
would be kind enough to provide an example bean+home+interface
-Alexander.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]