-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjhipster.jh
57 lines (48 loc) · 1.15 KB
/
jhipster.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
application {
config {
baseName parts
authenticationType session
applicationType monolith
prodDatabaseType postgresql
buildTool gradle
packageName com.tailosoft.interview.parts
languages [en, fr]
testFrameworks [cypress]
}
entities *
}
@filter
@paginate(pagination)
entity Part {
name String required
assemblyCost Double
bestPrice Double // Either best supplier price or children composition prices
}
relationship ManyToOne {
Part{bestSupplier(name)} to Supplier /* If not Null, supplier has the best price in the market */
}
@filter
@paginate(pagination)
entity Assembly {
quantity Integer required
}
relationship ManyToOne {
Assembly{parent(name) required} to @id Part{child}
Assembly{child(name) required} to @id Part{parent}
}
@filter
@paginate(pagination)
entity Supplier {
name String required
}
@filter
@paginate(pagination)
entity PartSupplier {
price Double required
}
relationship ManyToOne {
PartSupplier{part(name) required} to @id Part
PartSupplier{supplier(name) required} to @id Supplier
}
dto * with mapstruct
service * with serviceClass