Before change DaoFactory to Enum