-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjhipster-jdl.jdl
94 lines (70 loc) · 1.28 KB
/
jhipster-jdl.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
entity Parents {
parentsFristName String
parentsLastName String
}
entity Child {
userFristName String
userLastName String
}
entity Balance {
creditCardType String
creditcardNum Integer
vaildThru Instant
cvs Integer
maxLimit Double
thrityPrecentLimit Double
}
entity Transactions {
amount Double
date Instant
}
entity Points {
amount Integer
used Integer
}
entity Task {
name String
description String
pointValue Integer
completed Boolean
}
entity Achivement {
name String
pointValue Integer
}
entity CreditScore {
month Instant
ScoreNumber Integer
}
enum Language {
ENGLISH, SPANISH
}
relationship OneToOne {
Parents{creditScore} to CreditScore
}
relationship OneToOne {
Parents{points} to Points
}
relationship OneToOne {
Child{creditScore} to CreditScore
}
relationship OneToOne {
Child{points} to Points
}
relationship OneToOne {
Child{account} to Balance
}
relationship ManyToMany {
Parents to Child
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Parents to Balance{parents}
Balance to Transactions{account}
Task to Child{task}
}
relationship ManyToOne {
Achivement to Child{achivement}
Achivement to Parents{achivement}
Parents to Task{parents}
}