-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathAssessmentEvent.java
More file actions
52 lines (45 loc) · 1.31 KB
/
AssessmentEvent.java
File metadata and controls
52 lines (45 loc) · 1.31 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
43
44
45
46
47
48
49
50
51
52
package ai.elimu.entity.analytics;
import ai.elimu.entity.BaseEntity;
import ai.elimu.entity.application.Application;
import jakarta.persistence.Column;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.MappedSuperclass;
import jakarta.persistence.Temporal;
import jakarta.persistence.TemporalType;
import jakarta.validation.constraints.NotNull;
import java.util.Calendar;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@MappedSuperclass
public abstract class AssessmentEvent extends BaseEntity {
@NotNull
@Temporal(TemporalType.TIMESTAMP)
private Calendar timestamp;
/**
* See https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
*/
@NotNull
private String androidId;
/**
* The package name of the {@link #application} where the assessment event occurred.
*/
@NotNull
private String packageName;
/**
* This field will only be populated if a corresponding {@link Application} can be found in the database for the {@link #packageName}.
*/
@ManyToOne
private Application application;
/**
* Any additional data should be stored in the format of a JSON object.
*
* Example:
* <pre>
* {'word_ids_presented': [1,2,3], 'word_id_selected': 2}
* </pre>
*/
@Column(length = 1024)
private String additionalData;
}