interface PersonRepository extends CrudRepository<Person, Long> {
}
//this is of course invalid
List<Map<String, String>> persons = repository.findAll(Pageable p, Sortable s);
I want to benefit from the CurdRepository methods that make use of eg Pageable, Sortable or Predicate.
Though I'd like not to define my full @Entity object beforehand to fetch all desired columns, but my goal is just to fetch any columns present in that table of persons.
So to say: a generic SELECT using the jpa entity.
Is that possible?