Added repositoryClass to AbstractPost, clarified queries in PostRepository