-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjbh.jh
More file actions
83 lines (62 loc) · 1.81 KB
/
Copy pathjbh.jh
File metadata and controls
83 lines (62 loc) · 1.81 KB
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
DEFAULT_MAX_NAMELENGTH = 100
// Categories Module
entity Categories {
name String required maxlength(DEFAULT_MAX_NAMELENGTH),
definedByJBH Boolean,
creationDate LocalDate
}
entity SubCategories {
name String required maxlength(DEFAULT_MAX_NAMELENGTH),
definedByJBH Boolean,
creationDate LocalDate
}
// Users
entity UsersGroup {
name String,
invitationAccepted Boolean
}
entity UserGroupCategories {}
// Account Module
entity Accounts {}
entity AccountTypes {
description String,
definedByJBH Boolean
}
// Movementes
entity MovementesOutgoings {
totalValue BigDecimal,
createDate LocalDate
}
entity ActiveDebts {
value BigDecimal,
createDate LocalDate
}
relationship OneToOne {
Accounts{type} to AccountTypes,
Accounts{idUsrGroup} to UsersGroup,
UserGroupCategories{idUserGroup} to UsersGroup,
UsersGroup{idUserOwner} to User,
UsersGroup{idUserInvited} to User,
MovementesOutgoings{idUserGroup} to UsersGroup,
MovementesOutgoings{idSubCategory} to SubCategories,
MovementesOutgoings{paymentMethod} to Accounts,
ActiveDebts{idDebtor} to UsersGroup,
ActiveDebts{idCreditor} to UsersGroup,
ActiveDebts{idSubCategory} to SubCategories,
ActiveDebts{idMovementOutgoing} to MovementesOutgoings
}
// defining multiple OneToMany relationships with comments
relationship OneToMany {
Categories{subCategory} to SubCategories,
UserGroupCategories{idCategory} to Categories
}
// Set pagination options
paginate SubCategories, Categories with infinite-scroll
paginate SubCategories with pagination
paginate Categories with pagination
// Skip Angular Components
// Set service options to all except few
service * with serviceImpl
dto * with mapstruct
// Set an angular suffix
angularSuffix * with JBH