Open dhardtke opened 5 years ago
I stumbled upon this when I tried using my own Comparator to compare two Beans in the Collector.
Comparator
Collector
I tried this
collector.setComparator(Comparator.comparing(ExamParticipation::getUserId).thenComparing(ExamParticipation::getExamId));
but quickly realized that https://github.com/28Smiles/jdbi-modules/blob/82f0a6e6a6b2acf39e6bcd2dd038e2b6a26e020d/src/main/java/jdbi_modules/internal/CollectorImpl.java#L40 is only accepting BiFunctions.
BiFunction
Will be addressed in the next release.
Thank you for reporting this issue
I stumbled upon this when I tried using my own
Comparator
to compare two Beans in theCollector
.I tried this
but quickly realized that https://github.com/28Smiles/jdbi-modules/blob/82f0a6e6a6b2acf39e6bcd2dd038e2b6a26e020d/src/main/java/jdbi_modules/internal/CollectorImpl.java#L40 is only accepting
BiFunction
s.