set the repositories for the entities and the pollservice