You can do this with a stateless session bean.  It would be done as one
call, where you give it the ID from the A entity bean, and it would return
an array of primary key objects for the C entity beans that are related.


Jonathan Baker



Jianguo Wang wrote:
>
> Hi,
>
> I am having a design issue in my project as follows,
>
> I have three entity beans (A, B, C) corresponding to three tables. I want to use
> a session bean to get an ID_from_A, and then use this ID_From_A to access B
> in order to get all IDs_From_B related to the ID_From_A, and then use these
> IDs_From_B to access C in order to get data related to all IDs_From_B.
>
> Can anyone give me a suggestion;
> 1. A session is practical to do this task?
> 2. If it is, stateless or stateful?
>
> Thanks a lot.
>
> -Jianguo
>
> ===========================================================================
> 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".

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