Hi!

We have prepared inheritance support for finder methods tchnology
demo for JOnAS: JavaTM Open Application Server
(http://www.bullsoft.com/ejb/).
The patch is based on my proposal to EJB interest some time ago:

a) add deployment attribute indicating that one entity bean is
   subclass of another.
b) add class javax.ejb.KeyHomePair with two attributes primaryKey:
   Object and home : EJBHome to javax.ejb package.
c) add property to finder method in deployment descriptor with
   indicate that this finder method can return instances of
   subclass of this bean.
d) if finder method is marked as such, then this finder method
   return instances of KeyHomePair instead of primary keys.
e) the implementation of the finder method in generated home will
   dispatch load request to appropriate home.

The patch will not contain support from generator (we are generating
container code from uml model) but it will contain sample that
demonstrate the feature. The sample is intentionally unoptimal
to simplify ideas.

Demo is available at
http://tassun.math.nsc.ru/~const/ejb/inheritance.html.

We would like if similar prposal will be tried in other application
servers and be added to EJB 1.1.

Best Regards,
Constantine

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