This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viticultura-herokuapp.jh
153 lines (129 loc) · 2.61 KB
/
viticultura-herokuapp.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
application {
config {
baseName viticultura
packageName com.grafenonet.agro.viticultura
buildTool maven
authenticationType jwt
cacheProvider ehcache
clientFramework react
languages [es, en]
nativeLanguage es
}
entities *
dto * with mapstruct
service * with serviceClass
paginate * with pagination
}
entity Municipio {
codigo String,
nombre String
}
entity Provincia {
codigo String,
nombre String
}
entity Direccion {
direccion String,
localidad String,
codigoPostal String
}
entity Variedad {
nombre String
}
entity SistemaRiego {
codigo String,
nombre String
}
enum TipoCalidad {
DOP, IXP
}
entity Calidad {
nombre String
tipo TipoCalidad,
}
entity Bodega {
nombre String,
contacto String,
telefono String,
email String,
web String
}
entity Explotacion {
nombre String,
nif String
}
entity Parcela {
nombre String,
poligono String,
parcela String,
recinto String,
superficie Decimal
}
entity Titular {
nombre String,
apellidos String,
nif String,
telefono String,
email String
representante Boolean
}
entity Maquinaria {
marca String,
modelo String,
matricula String,
fechaCompra Date
}
entity Edificio {
nombre String
}
entity TratamientoFitosanitario {
fecha Date
}
entity Recoleccion {
fecha Date,
cantidad Integer,
grado Decimal,
documento String
}
entity Dinero {
fecha Date,
importe Decimal,
documento String
}
relationship OneToOne {
Direccion to Calidad,
Direccion to Bodega,
Direccion to Explotacion,
Direccion to Titular
}
// defining multiple OneToMany relationships with comments
relationship ManyToOne {
Bodega{calidad} to Calidad,
Explotacion{calidad} to Calidad,
Municipio{provincia} to Provincia,
Titular{explotacion} to Explotacion,
Parcela{explotacion} to Explotacion,
Maquinaria{explotacion} to Explotacion,
Edificio{explotacion} to Explotacion,
Parcela{variedadPrincipal} to Variedad,
Parcela{variedadSecundaria} to Variedad,
Parcela{sistemaRiego} to SistemaRiego,
Recoleccion{parcela} to Parcela,
Recoleccion{variedad} to Variedad,
Recoleccion{bodega} to Bodega,
TratamientoFitosanitario{parela} to Parcela,
Dinero{explotacion} to Explotacion
}
relationship OneToMany {
Direccion{municipio} to Municipio{direccion}
}
//relationship ManyToMany {
//}
// Set pagination options
paginate all with pagination
// Use Data Transfert Objects (DTO)
// dto * with mapstruct
// Set service options to all except few
service all with serviceImpl
// Set an angular suffix
// angularSuffix * with mySuffix