converte entity to dto and add entity sub package with entities