-
Notifications
You must be signed in to change notification settings - Fork 1
/
store.jh
84 lines (73 loc) · 1.46 KB
/
store.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
84
application {
config {
baseName store
packageName com.sample.shop
authenticationType jwt
prodDatabaseType mysql
devDatabaseType mysql
buildTool gradle
clientFramework react
enableTranslation true
nativeLanguage en
cacheProvider infinispan
searchEngine elasticsearch
languages [en]
jhiPrefix tm
reactive false
// pkType UUID
jhiPrefix tm
}
entities *
}
enum CategoryStatus {
AVAILABLE
RESTRICTED
DISABLED
}
entity Category {
description String required
sortOrder Integer
dateAdded LocalDate
dateModified LocalDate
status CategoryStatus
}
entity Product {
title String required
keywords String
description String
rating Integer
dateAdded LocalDate
dateModified LocalDate
}
entity Customer {
firstName String
lastName String
email String
telephone String
}
entity Address {
address1 String
address2 String
city String
postcode String required maxlength(10)
country String required maxlength(2)
}
entity WishList {
title String required
restricted Boolean
}
relationship OneToMany {
Customer{wishList(title)} to WishList{customer}
WishList{product(title)} to Product{wishList}
Customer{address} to Address{customer}
}
relationship ManyToOne {
Category{parent} to Category
}
relationship ManyToMany {
Category{product(title)} to Product{category}
}
service * with serviceClass
paginate * with infinite-scroll
dto * with mapstruct
search * with elasticsearch