-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roy Feldman
Sent: Tuesday, January 25, 2005 1:49 AM
To: Jan Heise; Andromda User
Subject: Re: [Andromda-user] Problems with Spring Inheritance



Hi Jan


On Tue, 2005-01-25 at 09:14 +0100, Jan Heise wrote:
> Hi Roy,
> 
> So for tests I would suggest:
> - don't have an abstract base class
> - have one finder on every class (even if you don't use it)
How does having a finder on every class help?

[CB] Well there was a bug in a change I introduced in the
applicationContext.xml (to support lazily loading of relationships anywhere
in the service or DAO) that expected all DAO's to have find* methods, (Jan,
was just trying out the cartridge and found that bug); however you shouldn't
need this anymore, as I fixed that a couple days ago.  Also entities defined
as abstract don't have any transaction attributes applied to them anymore
either.

cheers,

roy

> 
> At least that's what works for me now.
> 
> For the rest I have no explanation.
> 
> hth,
> 
> Jan
> 
> Am 25.01.2005 um 08:42 schrieb Roy Feldman:
> 
> >
> >
> > Hi Chad and all,
> >
> >
> > I have been having various problems with a model I built a few months
> > ago with the Spring Cartridge.  I left it aside shortly before the 
> > 3.0M3
> > release, when it generated and compiled fine.
> >
> > Now I need to start work on the next iteration of the application and I
> > have hit a roadblock with AndromMDA.
> >
> >
> > I can't successfully generate and compile it from either 3.OM3 or the
> > latest snapshot.
> >
> > I have created a simple test case with two Entitys, one which
> > specializes the other, to reproduce the problem.  I'll focus on the
> > problems I am having with the latest snaphsot, dated today Jan 25.
> >
> > The superclass is Vehicle and the subclass is Auto.
> >
> > For starters, I don't get any DAO's for either Vehicle or Auto.
> > However, I do see a file called $generatedFile which seems to contain
> > the code for VehicleDaoImpl.
> >
> > However, the  generated applicationContext.xml has bean declarations 
> > for
> > vehicleDao and autoDao.
> >
> > One more problem is the code generated for the factory method of Auto
> > does not compile.
> >
> >     [javac] /home/roy/src/logistics-2.0/generate/test/Auto.java:38:
> > incompatible types
> >     [javac] found   : test.AutoImpl
> >     [javac] required: test.Auto
> >     [javac]             return new test.AutoImpl();
> >
> >
> > The method body is:
> >
> >  public static final test.Auto newInstance()
> >  {
> >             return new test.AutoImpl();
> >  }
> >
> > This wont compile because AutoImpl extends VehicleImpl.
> >
> > Please look at my previous note about the problem I see with changing
> > Entities from interfaces to abstract classes.
> >
> > Chad, I have sent you copies of my test case model.  Please let me know
> > if there is anything else that you need.
> >
> >
> > thanks,
> >
> > roy
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Andromda-user mailing list
> > Andromda-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/andromda-user
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Andromda-user mailing list
> Andromda-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/andromda-user
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to