I think what the EJB spec does not provide is a means to represent polymorphic
structures.  For examples how would you define a finder method that returns all
Party beans including Individual beans?

"Laird J. Nelson" wrote:

> Rickard �berg wrote:
>
> > Laird Nelson wrote:
> > > Entity beans are not permitted to inherit from other entity beans.  This
> > > is one of the major shortcomings of the specification.
> > EntityBeans, or any beans for that matter, are
> > indeed allowed to make use of implementation reuse through inheritance,
> > just as Thierry is doing, but they're not allowed to do interface
> > inheritance.
>
> First, apologies to Thierry for my apparently giving the wrong advice.
>
> Phew; I'm glad I'm wrong, because that apparently means I CAN do this after
> all:
>
>   public class Party implements EntityBean {
>
>   }
>
>   public class Individual extends Party {
>
>   }
>
> I sure *thought* I couldn't.  I *thought* that's what the spec. was saying.  Oh
> well; learn something new every day.
>
> Cheers,
> Laird
>
> ===========================================================================
> 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