public class Order
  implements EntityBean
{
   PurchaseOrder pOrder;
   Vector        lines;

    . . .
}


public class PurchaseOrder
{
}


public class OrderLine
{
}

arkin




Chris Raber wrote:
>
> What specifically is confusing about how to implement the helper classes?
>
> -Chris.
>
> > -----Original Message-----
> > From: Nathan Phelps [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 18, 2000 2:57 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Fine-grained  data in container managed entity beans
> >
> > Sun states several times within the EJB 1.1 specification that Enterprise
> > Beans are to be course-grained.  Sun recommends modeling say a Purchase
> > Order as an entity bean, but suggest using "helper" classes for the
> > Purchase
> > Order's line items.  To quote the specification:
> >
> > Section 9.1.2 of the EJB 1.1 Specification entitled "The Granularity of
> > entity beans," says:
> >
> > "...a purchase order might be implemented as an entity bean, but the
> > individual line items on the purchase order should be implemented as
> > helper
> > classes, not as entity beans.  An employee record might be implemented as
> > an
> > entity bean, but the employee address and phone number should be
> > implemented
> > as helper classes, not as entity beans."
> >
> > So how should one implement these helper classes?
> >
> > Thanks,
> >
> > Nathan Phelps
> > solarc.com
> >
> > ==========================================================================
> > =
> > 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".

--
----------------------------------------------------------------------
Assaf Arkin                                           www.exoffice.com
CTO, Exoffice Technologies, Inc.                        www.exolab.org

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