Updated DaoController. Added possibility change entity class