new generation functions for entity.h and entityDAO.h working