DAO implementation question
I am using most of the pattern from
the core j2eepattern for the DAO factory and I have a question on what would be best. I have the daofactory and the concrete daofactory, for only one db now, then I have classes and a dao for each class. Example I have a class Person which has its own dao the Person's getters and setter interact with. My client code only uses the object and I don't talk to the dao directly except from its matching object.
OK anyways in the client code in the example
...
// create the required DAO Factory
DAOFactory cloudscapeFactory =
DAOFactory.getDAOFactory(DAOFactory.DAOCLOUDSCAPE);
// Create a DAO
CustomerDAO custDAO =
cloudscapeFactory.getCustomerDAO();
I don't want the DAOFactory.DAOCLOUDSCAPE on every object I have. I would like to decouple that away. What would you guys suggest. There are some very easy ways I think to do that I just want to make sure I don't miss anything and end up sorry later :-)

