Typically 1+ N calls for N elements, but a container vendor might optimize this with a configuration extension.
Fred Loney Spirited Software, Inc. www.spiritedsw.com ----- Original Message ----- From: "Dongmei Cao" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 20, 2002 1:30 PM Subject: How many database calls > 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".
