On Fri, 25 Feb 2005 16:27:09 -0800, <[EMAIL PROTECTED]> wrote: > Without knowing more details it is hard to respond. I did find the > description of the relations between the DAO objects a bit "off" from > what I would have expected. I would have expected something like: > > CustomerDAO customerDAO = FactoryDAO.getCustomerDAO(); > > This assumes that the CustomerDAO is an interface and that > getCustomerDAO() in FactoryDAO is setup to get the default > implementation of the CustomerDAO. If CustomerSqlMapDAO is such an > implementation, then I understand. The naming is just a bit odd to > me. (I don't use iBatis and that may be standard terminology there.) >
I am assuming that Tim is using the iBATIS DAO layer as well as SQLMaps, so what you are describing is pretty accurate. The factory call is *slightly* different - in iBATIS, we use an factory that requires you to cast the returned DAO: CustomerDao dao = (CustomerDao)daoManager.getDao(CustomerDao.class); Larry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]