Skip to content

Commit 758280e

Browse files
committed
feat(SoundFileSourceRepository): add pagination support to sound file sources retrieval method
1 parent b53be3f commit 758280e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/net/onelitefeather/vulpes/api/repository/SoundFileSourceRepository.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import io.micronaut.data.annotation.Query;
44
import io.micronaut.data.annotation.Repository;
5+
import io.micronaut.data.model.Pageable;
56
import io.micronaut.data.repository.PageableRepository;
67
import net.onelitefeather.vulpes.api.model.sound.SoundFileSource;
78

@@ -22,9 +23,10 @@ public interface SoundFileSourceRepository extends PageableRepository<SoundFileS
2223
* Retrieves the sound file sources associated with a sound event by its ID.
2324
*
2425
* @param id the unique identifier of the sound event
26+
* @param pageable the pagination information
2527
* @return a list of sound file sources associated with the sound event
2628
*/
2729
@Query("SELECT f FROM sound_data f WHERE f.soundEvent.id = :id")
28-
List<SoundFileSource> findSoundFileSourcesBySoundEvent(UUID id);
30+
List<SoundFileSource> findSoundFileSourcesBySoundEvent(UUID id, Pageable pageable);
2931

3032
}

0 commit comments

Comments
 (0)