I have an entity called Company. AndroMDA has generated a DAO for this entity (CompanyDao) and also an implementation in the src directory (CompanyDaoImpl). What is the correct way to instantiate the implementation class and call a method on it? I tried the following and got a NullPointerException. I am not surprised because I am sure there is some setup required to instantiate and call the methods of the DAO.
CompanyDaoImpl dao = new CompanyDaoImpl(); return (CompanyVO)dao.load(CompanyDao.TRANSFORM_COMPANYVO, companyId); _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3831#3831 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user