The basicportal DAO is designed to be replaceable by any persistence mechanism you want (EJB, another DAO, etc). The additional layer ends up giving you more power as it abstracts all database interaction away. As a developer you write beans which call the DAO methods. If you end up changing your persistence method you bean code is insulated from the change. It will still call the DAO methods but the DAO may implementation can change.
-john > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Monday, September 02, 2002 10:36 PM > To: "John Menke" > Cc: "Mvc-Programmers" > Subject: [MVC-Programmers] RE: basicportal .05f install > > > I'm new to this so my concerns about the DAO may be unfounded. > From where I am right now, JDBC is easy enough. Adding in a layer > of code for the DAO is difficult for me to appreciate, at this > point. -- Peter > > "John Menke" <[EMAIL PROTECTED]> wrote: > > >Yes, there is a bug that was supposed to be fixed by now in the > add/save see > >the Developer FAQ. there is a workaround. You have to use the previous > >version of the rowset implementation. Sorry for the confusion. > We should > >have the rowset completed soon. > > > >What do you see wrong with the DAO other than the obvious save problems? > > > >-john > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > >> Sent: Monday, September 02, 2002 6:03 PM > >> To: "John Menke" > >> Cc: "Mvc-Programmers" > >> Subject: basicportal .05f install > >> > >> > >> John -- Thanks! That helped a lot. I gave up on MySQL ... even > >> after getting rid of all of the \" it still had problems, so back > >> to PostgreSQL. I have gotten the application to start up and > >> sort-of behave from within my IDE. (Formerly was trying to get it > >> to run under Tomcat by itself.) Now I am getting errors when I > >> try to add or save to the database. For example > >> "java.lang.IllegalArgumentException: no table > >> nameObject:org.apache.store.StoreDAO". That was on add an item. > >> Also had error saving an existing item. I'm assuming these > >> functions work for you so I will dig a little deeper. Frankly, I > >> have misgivings about the DAO layers that appear to be here. Any > >> opinion? Another little DB typo in 05f: In createDB.sql drop > >> table "store_cart"; should read drop table "store_cart_wrk"; > >> Thanks for the help. > >> -- Peter > >> > >> > >> "John Menke" <[EMAIL PROTECTED]> wrote: > >> > >> >yes, I install .05f from scratch and it works with postgres, > even install > >> >Tomcat 4.17 from scratch right before. > >> > > >> >It sounds like the database... can you confirm there is data in > >> the tables? > >> >Check the database URL in poolman.xml and security-filter config > >> files. Is > >> >it correct for database? (including the port number?) If you are > >> using MySQL > >> >maybe port 5432 is not the correct port? > >> > > >> >ALSO: IS THERE ANY MESSAGE IN THE WINDOW THAT YOU STARTED > >> TOMCAT IN? (THIS > >> >IS SOMETIMES DIFFERENT THAN THE LOG.) > >> > > >> >yes, reply to list > >> > > >> >-john > >> > > >> > >> > >> __________________________________________________________________ > >> The NEW Netscape 7.0 browser is now available. Upgrade now! > >> http://channels.netscape.com/ns/browsers/download.jsp > >> > >> Get your own FREE, personal Netscape Mail account today at > >http://webmail.netscape.com/ > > > > > > __________________________________________________________________ > The NEW Netscape 7.0 browser is now available. Upgrade now! > http://channels.netscape.com/ns/browsers/download.jsp > > Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.netbean.net/mailman/listinfo/mvc-programmers _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.netbean.net/mailman/listinfo/mvc-programmers