-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathLetterSoundLearningEvent.java
More file actions
42 lines (35 loc) · 1.13 KB
/
LetterSoundLearningEvent.java
File metadata and controls
42 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package ai.elimu.entity.analytics;
import java.util.List;
import ai.elimu.entity.content.LetterSound;
import ai.elimu.entity.converters.StringListConverter;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Entity
public class LetterSoundLearningEvent extends LearningEvent {
/**
* The sequence of letters. E.g. <code>["s","h"]</code>.
*/
@NotNull
@Convert(converter = StringListConverter.class)
private List<String> letterSoundLetters;
/**
* The sequence of sounds (IPA values). E.g. <code>["ʃ"]</code>.
*/
@NotNull
@Convert(converter = StringListConverter.class)
private List<String> letterSoundSounds;
/**
* This field might not be included, e.g. if the assessment task was done in a
* 3rd-party app that did not load the content from the elimu.ai Content Provider.
* In that case, this field will be {@code null}.
*/
private Long letterSoundId;
@ManyToOne
private LetterSound letterSound;
}