Hi,
I would like to create a Session Bean for Client Sign-up and Login. Do i need to create Primary key class?
-
do i need a Primary Key Class???? (3 messages)
- Posted by: Rahul ..
- Posted on: May 21 2001 08:46 EDT
Threaded Messages (3)
- do i need a Primary Key Class???? by Nick Stephens on May 21 2001 08:56 EDT
- do i need a Primary Key Class???? by Rahul .. on May 21 2001 09:11 EDT
- do i need a Primary Key Class???? by Nick Stephens on May 21 2001 09:16 EDT
- do i need a Primary Key Class???? by Rahul .. on May 21 2001 09:11 EDT
-
do i need a Primary Key Class????[ Go to top ]
- Posted by: Nick Stephens
- Posted on: May 21 2001 08:56 EDT
- in response to Rahul ..
If you read a book on EJB you would know.
Session beans do not have primary keys.
Anyswer is NO. -
do i need a Primary Key Class????[ Go to top ]
- Posted by: Rahul ..
- Posted on: May 21 2001 09:11 EDT
- in response to Nick Stephens
thanks -
do i need a Primary Key Class????[ Go to top ]
- Posted by: Nick Stephens
- Posted on: May 21 2001 09:16 EDT
- in response to Rahul ..
No Problem.
If your session bean acts as a facade to an entity bean, to look up your user, then you'll need a primary key class for the entity bean.
Any development tool e.g. Visual Age etc. will automatically create a PK class for you, but you will have to customise it with the fields which are specific to what you want.