-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskmanagement-jdl.jh
51 lines (44 loc) · 984 Bytes
/
taskmanagement-jdl.jh
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
DEFAULT_MIN_LENGTH = 3
DEFAULT_MAX_LENGTH = 255
/**
* A ReleaseStatus Enumeration for Releases Statuses
*/
enum ReleaseStatus {
NEW,
IN_PROGRESS,
DONE
}
/**
* A TaskStatus Enumeration for Tasks Statuses
*/
enum TaskStatus {
NEW,
IN_PROGRESS,
INVALID,
WAITING_FOR_REVIEW,
DONE
}
entity Task {
title String required minlength(DEFAULT_MIN_LENGTH) maxlength(DEFAULT_MAX_LENGTH),
status TaskStatus required,
description String,
deadline Instant
}
entity Release {
title String required minlength(DEFAULT_MIN_LENGTH) maxlength(DEFAULT_MAX_LENGTH),
type String required,
status ReleaseStatus required,
deadline Instant
}
relationship OneToMany {
// This is not supported using JDL
// It is done manually instead
// User{ownedRelease} to Release{createdBy}
Release to Task
}
relationship ManyToMany {
Release{team} to User{release},
Task{assignee} to User{task}
}
dto * with mapstruct
service * with serviceImpl