-
Notifications
You must be signed in to change notification settings - Fork 0
/
jhipster-jdl.jh
58 lines (42 loc) · 1005 Bytes
/
jhipster-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
52
53
54
55
56
57
58
entity Team {
name String required
}
entity Area {
name String required
}
entity Seat {
number Long required,
status SeatStatus,
aisleSeat Boolean,
windowSeat Boolean,
middleSeat Boolean
}
entity Reservation {
startDate Instant required,
endDate Instant required
}
enum SeatStatus {
BOOKED("Booked"), AVAILABLE("Available"), UNSET("Unset")
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Team{members(login)} to User,
Seat{reservation} to Reservation{seat(number)},
/**
* A relationship
*/
Area{seats(number)} to Seat{area(name)}
}
// defining multiple OneToMany relationships with comments
relationship ManyToOne {
Reservation{collaborator(login)} to User
}
relationship OneToOne {
Seat{rightSeat(number)} to Seat,
Seat{leftSeat(number)} to Seat,
Seat{frontSeat(number)} to Seat
}
paginate Area with infinite-scroll
paginate Seat, Reservation with pagination
dto * with mapstruct
service all with serviceImpl