Closed mathieu-lavigne closed 6 years ago
Thanks for the finding. What a pitty. We should also consider this for a solution: https://github.com/spring-projects/spring-data-jpa/blob/master/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java#L313
Hi @hohwille maybe nobody use this method :)
I tried to adapt Spring's method but they do not use the same internal objects. Moreover they use findById in a loop, I don't know if this is very efficient compared to the single "select in" query already used in devon.
I send you my PR as-this so you can adapt it.
Hi Team,
We are trying to use the findAll(Iterable) in the AbstractGenericDao class in jpa module but it seems it cannot work because of this line of code :
in
method accepts an array of ID and if we call it using a IterableThese few lines of codes are needed to convert ids into array of ID :
and then we can call :
I will create a PR to fix it if it seems okay for you.