Hi Chad,
On Fri, 2004-12-03 at 07:31 -0700, Chad Brandon wrote: > Business methods are currently created on the DAOs if you model operations > on the entities, does that not work for you? The short answer is no. I don't think an object that wants to call an entity's business method should depend on its corresponding DAO. For example, if I write a report class that needs to ask the Entity "Employee" to perform some operations, that report object shouldn't have to depend on the EmployeeDAO. Many entity business operations are read only and wont even need to access to the database, because all of the information required is stored in the entity, so it just doesn't make sense to put the operation on its DAO, IMHO. cheers, roy > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roy Feldman > Sent: Friday, December 03, 2004 4:52 AM > To: andromda-user > Subject: [Andromda-user] Adding business methods to Spring Entities > > > One of the first things I'd like to do is to write templates to support > business methods on a Spring Entity, much like you can with a Hibernate > Entity. > > There are some cases where I don't want to put a method is a separate > Service object, but declare it in the Entity itself. > > It would be much like the abstract class for an Hibernate Entity, except > it would implement the interface that is generated by the Spring > cartridge (with operations). Of course, the concrete Impl Spring > generates would inherit from that abstract class, like in the Hibernate > cartridge. > > As soon as 3.0M3 freezes, I will probably do it shortly after. > > > Is anybody else interested in similar functionality in the Spring > cartridge, or am I just not with the "program". ;-) > > > cheers, > > roy > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
