Change the repository to get one or multiple sets with joins