I originally didn't have the DAO suffix and then added it for the getter...I
just never got around to add it back to the setter since it didn't really
any effect (since you shouldn't even access it at all..the container handles
it).  Anyway it should probably be changed, so feel free to file a bug and
I'll fix it.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
Bohlen
Sent: Thursday, February 03, 2005 1:34 AM
To: andromda-devel@lists.sourceforge.net
Subject: [Andromda-devel] DAO getters/setters in Spring cartridge

Hi all,

when I use the Spring cartridge and generate code from a <<Service>>
class that has dependencies to <<Entity>> classes, I get getters and
setters for the DAOs inside the ServiceBase classes. The getters do
not have the same name as the setters, slightly asymmetric behavior:

    private de.mbohlen.samples.springtest.SubscriberDao subscriber;

    /**
     * Sets the reference to <code>subscriber</code>'s DAO.
     */
    public void setSubscriber(...SubscriberDao subscriber)
    {
        this.subscriber = subscriber;
    }

    /**
     * Gets the reference to <code>subscriber</code>'s DAO.
     */
    protected ...SubscriberDao getSubscriberDao()
    {
        return this.subscriber;
    }

In my opinion, the setter should be called "setSubscriberDao" and the
field should be called "subscriberDao", too.

What's the idea behind it?

Cheers...
Matthias

---

Matthias Bohlen
"Consulting that helps project teams to succeed..."

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]

Phone: +49 (170) 772 8545






-------------------------------------------------------
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-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel




-------------------------------------------------------
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-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to