how to reference more than one table in the deployment descritor

Discussions

EJB design: how to reference more than one table in the deployment descritor

  1. Hi,
    I wud like 2 know how 2 refernce more than one table in the deployment descriptor.
    I have 2 tables employee N Account
    I have an entity bean which calls employee table N also it shud reference the table (N call the data in the)Account table.Can anyone suggest me how 2 do it.
    thanx
  2. Create a database view v_CustomerAccount???? Or have you tried this?

  3. i couldnt get what U mean 2 say,No i never tried that.
    Plz can U B more specific.
    thanx
  4. Can u xplain ur problem a bit more.
    Thanx
  5. If you are using CMP and EJB 1.1, then you can't - your entity beans have to be fine grained.

    If you are using EJB 2.0, then this problem is solved by the use of relationships and local interface fine grained entity beans ... the pattern is described somewhere in here (I believe it's listed as a replacement to the BMP aggregate entity pattern)