-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.jdl
62 lines (51 loc) · 1.07 KB
/
app.jdl
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
53
54
55
56
57
58
59
60
// The priority describes how urgent the issue is
enum Priority {
SHOWSTOPPER,
EMERGENCY,
HIGH,
LOW,
ROUTINE,
DEFER
}
// The resolution is the current status of the issue
enum Resolution {
NEW,
RELEASED,
DUPLICATE,
TESTED,
FIXED,
PARTIALLY_FIXED,
REVIEWED,
CANNOT_REPRODUCE
}
// This is the Issue table, which will be mapped to an object
entity Issue {
number Integer required,
description TextBlob,
priority Priority,
resolution Resolution,
reviewerId Long,
reportedDate Instant
}
// Comment for users to make
entity Comment {
description TextBlob required,
date Instant required
}
//
// DEFINE RELATIONSHIPS
//
// One issue may have many comments on it
relationship OneToMany {
Issue{comment} to Comment
}
// One user can have multitple issues
// One user can make many comments
relationship ManyToOne {
Issue{user(login)} to User,
Comment{user(login)} to User
}
// Create a service class for all entities
service * with serviceClass
// Allow us to filter all the issues by their fields
filter Issue