This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjhipster-jdl.jh
83 lines (69 loc) · 1.62 KB
/
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
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
entity Country {
name String required
}
entity StateCounty {
name String required
}
entity City {
name String required
}
entity Comment {
authorName String required
text String required maxlength(1000)
}
entity Restaurant {
name String required,
streetAddress String,
postalCode String,
infoEng String maxlength(1000),
infoHun String maxlength(1000),
email String required,
phone String,
website String,
facebook String,
googlePlaceId String
rating Integer
lat Double
lng Double
visible Boolean
}
entity Picture {
title String required,
url String,
img ImageBlob
}
entity Kitchen {
typeEng String required
typeHun String required
}
entity Food {
typeEng String required
typeHun String required
}
entity Reservation {
time Instant required
people Integer required
confirmed Boolean
confirmationKey String maxlength(20)
}
relationship ManyToOne {
Restaurant{city(name) required} to City
City{stateCounty(name) required} to StateCounty
StateCounty{country(name) required} to Country
Restaurant{user(login) required} to User
Reservation{restaurant(name) required} to Restaurant
Reservation{user(login)} to User
Restaurant{picture(title)} to Picture
}
relationship ManyToMany {
Restaurant{kitchen(type)} to Kitchen
Restaurant{food(type)} to Food
}
relationship OneToMany {
Restaurant{comment} to Comment
}
// Set pagination options
service Restaurant with serviceClass
filter Restaurant
paginate Country, StateCounty, City, Kitchen, Food, Reservation, Comment with infinite-scroll
paginate Restaurant, Picture with pagination