Title: Nachricht
Hi Thorsten,
 
next week, there will only be a maintenance release (2.1.1) that fixes the build.xml bug in the empty sample project wizard for Hibernate 2 projects. Support for abstract EJB inheritance is already in the code base of AndroMDA 3.x (see the HEAD branch in CVS). You may try it already if you do a CVS checkout and build AndroMDA from the sources which is only a matter of one line in a properties file and a call to "ant".
 
About EJB inheritance: There is no REAL inheritance in EJB. For example: Create three beans, call them AnimalBean, DogBean and CatBean. Let DogBean and CatBean inherit from AnimalBean. Let all the interfaces inherit, too. Then, call DogHome.create("fido") and CatHome.create("pussy"). Then, call AnimalHome.findByPrimaryKey("fido"). Surprise, surprise: You will get an AnimalBean, not a DogBean and you will NOT be able to cast. You see what happened?
 
So all that we do in the AndroMDA 3.x EJB cartridge is abstract inheritance. The base classes themselves cannot create instances and cannot find instances of derived classes.
 
Cheers...
Matthias
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thorsten Lamby
Sent: Thursday, December 04, 2003 11:23 PM
To: [EMAIL PROTECTED]
Subject: [Andromda-user] Next Release

Hi Matthias,
 
you talked about a new release next week.
Is the support for EJB inheritance inside this release?
Someone told me you are working on this ...
For the value objects I adjusted the VSL file to solve this problem.
I think it is more difficult for the entity bean classes, because of the home interface, isn't it. In an article about this
inheritance problem I read that one have to implement ejbHomeLocate methods in the base bean class to reference
the subclass beans. Is that right?
 
Cheers
Thorsten
 
 

Reply via email to