interface PersonRepository extends CrudRepository<Person, Long> {
}
//this is of course invalid
List<Map<String, String>> persons = repository.findAll(Pageable p, Sortable s);
我想从使用CurdRepository
,Pageable
或Sortable
的{{1}}方法中受益。
尽管我不想预先定义完整的Predicate
对象来获取所有所需的列,但是我的目标只是获取该人表中存在的任何列。
可以这么说:使用jpa实体的通用 SELECT 。
有可能吗?