File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
src/main/java/net/onelitefeather/vulpes/api Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 4
4
import jakarta .persistence .GeneratedValue ;
5
5
import jakarta .persistence .GenerationType ;
6
6
import jakarta .persistence .Id ;
7
+ import jakarta .persistence .JoinColumn ;
8
+ import jakarta .persistence .ManyToOne ;
7
9
import net .onelitefeather .vulpes .api .generator .VulpesGenerator ;
8
10
import net .onelitefeather .vulpes .api .model .VulpesModel ;
9
11
import org .hibernate .annotations .ColumnDefault ;
@@ -41,6 +43,10 @@ public class SoundFileSource implements VulpesModel {
41
43
@ ColumnDefault ("'type_file'" )
42
44
private String type ;
43
45
46
+ @ ManyToOne
47
+ @ JoinColumn (name = "sound_event_id" )
48
+ private SoundEventEntity soundEvent ;
49
+
44
50
/**
45
51
* Default constructor for JPA and Micronaut Data.
46
52
* <p>
@@ -232,6 +238,10 @@ public boolean isStreamable() {
232
238
return stream ;
233
239
}
234
240
241
+ public SoundEventEntity getSoundEvent () {
242
+ return soundEvent ;
243
+ }
244
+
235
245
@ Override
236
246
public boolean equals (Object o ) {
237
247
if (o == null || getClass () != o .getClass ()) return false ;
Original file line number Diff line number Diff line change
1
+ package net .onelitefeather .vulpes .api .repository ;
2
+
3
+ import io .micronaut .data .annotation .Repository ;
4
+ import io .micronaut .data .repository .PageableRepository ;
5
+ import net .onelitefeather .vulpes .api .model .NotificationEntity ;
6
+ import net .onelitefeather .vulpes .api .model .sound .SoundFileSource ;
7
+
8
+ import java .util .UUID ;
9
+
10
+ /**
11
+ * The {@link SoundFileSourceRepository} interface inherits from {@link PageableRepository} and provides methods to manage {@link SoundFileSource} objects.
12
+ *
13
+ * @author theEvilReaper
14
+ * @version 1.0.0
15
+ * @since 1.5.1
16
+ */
17
+ @ Repository
18
+ public interface SoundFileSourceRepository extends PageableRepository <SoundFileSource , UUID > {
19
+ }
You can’t perform that action at this time.
0 commit comments