History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-6
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sascha-Matthias Kulawik
Reporter: Jens Kumpfmueller
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

Entity Inheritance Broken

Created: 26/Sep/04 06:21 PM   Updated: 12/Oct/04 01:16 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
In Method "handleGetAllEntityRelations" the collection object of inherited relations is added to the resulting collection.
Patch see below:

Index: EJBEntityFacadeLogicImpl.java
===================================================================
RCS file: /cvsroot/andromda/cartridges/andromda-ejb/src/java/org/andromda/cartridges/ejb/metafacades/EJBEntityFacadeLogicImpl.java,v
retrieving revision 1.13
diff -u -r1.13 EJBEntityFacadeLogicImpl.java
--- EJBEntityFacadeLogicImpl.java 12 Sep 2004 16:53:09 -0000 1.13
+++ EJBEntityFacadeLogicImpl.java 26 Sep 2004 18:02:28 -0000
@@ -80,8 +80,8 @@
         {

EJBEntityFacade entity = (EJBEntityFacade)classifier;
- result.add(entity.getEntityRelations());
- classifier = (ClassifierFacade)this.getGeneralization();
+ result.addAll(entity.getEntityRelations());
+ classifier = (ClassifierFacade)classifier.getGeneralization();
         }
         return result;
     }

 All   Comments   Change History      Sort Order:
Implemented.

Comment by Jens Kumpfmueller [27/Sep/04 10:43 AM]
Not fixed yet :( you missed the second significant change in line 83:

result.add_All_(entity.getEntityRelations());

otherwise the result collection contains a collection object...

greetings

jens

Now it is fixed :)