On Tue, 20 Aug 2002, Dongmei Cao wrote: Hi, It depends on the container which you are using. Some of them may load the bean and its relationship in one single SQL query. maybe somebody else can throw light on how a specific container does it.
-Sumesh. > Hi, > > I have a question regarding the EJB 2.0 CMP. > I have an EntityBeanA and EntityBeanB. They have > one to many relationship. When I call > EntityBeanA.getEntityBeanB(), it should return a > Collection of EntityBeanB. My question is how > many database calls the container actually makes > when I make that call. Is it one call? Or one per > element in the collection? > > Thanks, > Dongmei > > =========================================================================== > 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".
