Dql query should be in a repository.