Sanjay Nambiar wrote:

> Hi,
> Our application typically has the following scenario:
>
> 1>For Every Record of Table1 we have multiple records in Table2,in turn
> whose every record has multiple records in Table3.
> As the data volumes are very high,I wanted to know if the approach given
> below is right
> In the entity bean of Table 1 we have an extra attribute of say "Vector
> type" which would contain the bean references of all the entitybeans
> corresponding to Table 2.The same is done for the relationship between table
> 2 and table 3
> In the entityBean for Table 1 we query the Table 2 and populate the
> entitybean instances of Table 2 from Table 1 entitybean itself and store the
> bean references in the Vector and then this Table 1 entitybean is accessed
> from the sessionbean for all the records.

If by this you mean anything other than calling a finder method on the entity
bean for table 2 to retrieve an enumeration of EJBObject references, then there
is something definitely wrong with what you are doing.  You MUST go through the
finder method to retrieve the entity bean instances for table 2.  If you do
that, then I don't see a problem with the rest of it.

begin:vcard
n:Wilson;Chip
tel;fax:(214) 358-0353
tel;work:(214) 642-4559
x-mozilla-html:TRUE
url:http://www.axyssolutions.com/
org:Axys Solutions
adr:;;;Dallas;TX;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Application Architect
note:Sun Certified Java Architect
x-mozilla-cpt:;-25088
fn:Chip Wilson
end:vcard

Reply via email to