Folks,


A newbie question, so apologies if the answer is in a FAQ somewhere:


I have 3 entity beans: Organisation, Contact, and Address. All use BMP.
An Org can have many Contacts, and a Contact can have many Addresses. An Org
can also have many Addresses.

I intend to use Stateless Session Beans as facades to the Entity Beans.

Question: How should the 1-to-many relationship be modelled?

In the Entity Bean?
e.g. a Vector of primary keys in the Organisation bean, populated by reading
the Contact DB table directly?


In the Session Bean facade?


Some other mechanism?



Thanks in advance - Adam

===========================================================================
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