change inheritence, using AbstractEntityRepository to use findAllByQuery