On Thu, 2005-10-27 at 18:02 +0100, Aaron Trevena wrote: > On 10/27/05, Perrin Harkins <[EMAIL PROTECTED]> wrote: > > On Thu, 2005-10-27 at 09:53 +0100, Aaron Trevena wrote: > > > I've been reading this thread : > > > http://www.spanner.org/lists/cdbi/2005/04/04/78fc84eb.html about > > > Rails, CDBI and Hibernate and in particular Tony talking about > > > building a set of objects from a single query. > > > > > > I believe that if we can provide this in Maypole::Model::CDBI it would > > > be quite a coup. > > > > I think Class::DBI::Sweet and Rose::DB::Object beat you to it. > > Yes, also tangram. But doing it in the base model class in Maypole > would be pretty cool. > > I plan on stealing^Wintegrating the relevent parts of C::DBI::Sweet > into the Maypole CDBI model.
I was about to ask whether anybody had thought about using Sweet as the base for the model instead of CDBI itself, because I need some extra capabilities that it has (e.g. limit the number of records returned from a query). I don't mean to replace the existing Maypole::Model::CDBI, I just mean to make an additional Maypole::Model::CDBISweet. Is there a reason not to do that rather than cut and paste code? It seems to me to mean less maintenance in the future and it also seems a better functionality split (i.e the Sweet functionality presently works without Maypole, so IMHO it naturally belongs in the CDBI namespace as part of the model-proper, rather than in the Maypole-Model namespace which I now look at as defining Presentation). > I also have Peter's work on the Model, some of which will go into the > base model as well. > > Finally we have the reflection methods we discussed on irc today. > > Once that's done I can finish the form handling... busy busy busy! Cheers, Dave ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Maypole-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maypole-devel
