runMark commited on
Commit
90d89a4
1 Parent(s): e2d83ea

Upload 2 files

Browse files
Files changed (2) hide show
  1. atmos.paw +0 -0
  2. jhipster-jdl.jdl +115 -0
atmos.paw ADDED
Binary file (5.2 kB). View file
 
jhipster-jdl.jdl ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ entity Region {
3
+ regionName String
4
+ }
5
+
6
+ entity Country {
7
+ countryName String
8
+ }
9
+
10
+ // an ignored comment
11
+ /** not an ignored comment */
12
+ entity Location {
13
+ streetAddress String
14
+ postalCode String
15
+ city String
16
+ stateProvince String
17
+ }
18
+
19
+ entity Department {
20
+ departmentName String required
21
+ }
22
+
23
+ /**
24
+ * Task entity.
25
+ * @author The JHipster team.
26
+ */
27
+ entity Task {
28
+ title String
29
+ description String
30
+ }
31
+
32
+ /**
33
+ * The Employee entity.
34
+ */
35
+ entity Employee {
36
+ /**
37
+ * The firstname attribute.
38
+ */
39
+ firstName String
40
+ lastName String
41
+ email String
42
+ phoneNumber String
43
+ hireDate Instant
44
+ salary Long
45
+ commissionPct Long
46
+ }
47
+
48
+ entity Job {
49
+ jobTitle String
50
+ minSalary Long
51
+ maxSalary Long
52
+ }
53
+
54
+ entity JobHistory {
55
+ startDate Instant
56
+ endDate Instant
57
+ language Language
58
+ }
59
+
60
+ enum Language {
61
+ FRENCH, ENGLISH, SPANISH
62
+ }
63
+
64
+ relationship OneToOne {
65
+ Country{region} to Region
66
+ }
67
+
68
+ relationship OneToOne {
69
+ Location{country} to Country
70
+ }
71
+
72
+ relationship OneToOne {
73
+ Department{location} to Location
74
+ }
75
+
76
+ relationship ManyToMany {
77
+ Job{task(title)} to Task{job}
78
+ }
79
+
80
+ // defining multiple OneToMany relationships with comments
81
+ relationship OneToMany {
82
+ Employee to Job{employee}
83
+ /**
84
+ * A relationship
85
+ */
86
+ Department to
87
+ /**
88
+ * Another side of the same relationship
89
+ */
90
+ Employee{department}
91
+ }
92
+
93
+ relationship ManyToOne {
94
+ Employee{manager} to Employee
95
+ }
96
+
97
+ // defining multiple oneToOne relationships
98
+ relationship OneToOne {
99
+ JobHistory{job} to Job
100
+ JobHistory{department} to Department
101
+ JobHistory{employee} to Employee
102
+ }
103
+
104
+ // Set pagination options
105
+ paginate JobHistory, Employee with infinite-scroll
106
+ paginate Job with pagination
107
+
108
+ // Use Data Transfer Objects (DTO)
109
+ // dto * with mapstruct
110
+
111
+ // Set service options to all except few
112
+ service all with serviceImpl except Employee, Job
113
+
114
+ // Set an angular suffix
115
+ // angularSuffix * with mySuffix