File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/net/onelitefeather/vulpes/api/repository Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
package net .onelitefeather .vulpes .api .repository ;
2
2
3
+ import io .micronaut .data .annotation .Query ;
3
4
import io .micronaut .data .annotation .Repository ;
4
5
import io .micronaut .data .repository .PageableRepository ;
5
6
import net .onelitefeather .vulpes .api .model .sound .SoundFileSource ;
6
7
8
+ import java .util .List ;
7
9
import java .util .UUID ;
8
10
9
11
/**
15
17
*/
16
18
@ Repository
17
19
public interface SoundFileSourceRepository extends PageableRepository <SoundFileSource , UUID > {
20
+
21
+ /**
22
+ * Retrieves the sound file sources associated with a sound event by its ID.
23
+ *
24
+ * @param id the unique identifier of the sound event
25
+ * @return a list of sound file sources associated with the sound event
26
+ */
27
+ @ Query ("SELECT f FROM sound_data f WHERE f.soundEvent.id = :id" )
28
+ List <SoundFileSource > findSoundFileSourcesBySoundEvent (UUID id );
29
+
18
30
}
You can’t perform that action at this time.
0 commit comments