Search in sources :

Example 1 with DefaultDAOFactory

use of com.tomasio.projects.trainning.dao.DefaultDAOFactory in project trainning by fernandotomasio.

the class AnotacaoTeste method main.

public static void main(String[] args) throws DAOException {
    DAOFactory factory = new DefaultDAOFactory();
    CursoDAO cursoDAO = factory.getCursoDAO();
    System.out.println(cursoDAO.findAll(null, null, null, null).size());
    System.out.println("ok");
}
Also used : DefaultDAOFactory(com.tomasio.projects.trainning.dao.DefaultDAOFactory) DefaultDAOFactory(com.tomasio.projects.trainning.dao.DefaultDAOFactory) DAOFactory(com.tomasio.projects.trainning.dao.DAOFactory) CursoDAO(com.tomasio.projects.trainning.dao.CursoDAO)

Aggregations

CursoDAO (com.tomasio.projects.trainning.dao.CursoDAO)1 DAOFactory (com.tomasio.projects.trainning.dao.DAOFactory)1 DefaultDAOFactory (com.tomasio.projects.trainning.dao.DefaultDAOFactory)1