Discussions

EJB design: do i need a Primary Key Class????

  1. do i need a Primary Key Class???? (3 messages)

    Hi,
      I would like to create a Session Bean for Client Sign-up and Login. Do i need to create Primary key class?
  2. do i need a Primary Key Class????[ Go to top ]

    If you read a book on EJB you would know.
    Session beans do not have primary keys.
    Anyswer is NO.
  3. do i need a Primary Key Class????[ Go to top ]

    thanks
  4. do i need a Primary Key Class????[ Go to top ]

    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.