-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjhipster-jdl.jh
101 lines (85 loc) · 1.69 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
entity Usuario {
id Long,
userId Long,
name String,
email String,
perfil Perfil,
genero Genero
}
enum Perfil{
ADMINISTRADOR, COORDENADOR, USUARIO
}
enum Genero{
MASCULINO, FEMININO
}
entity Evento{
id Long,
versao String,
tema String,
inicioEvento Instant,
fimEvento Instant,
inicioInscricoes Instant,
fimInscricoes Instant
}
entity Inscricao{
id Long,
nome String,
tipoParticipacao TipoParticicao,
idade Long,
numeroParticipacoes Long
}
entity Comissao{
id Long,
comissao String,
nome String,
descricao String
}
enum TipoParticicao{
CONFRATERNISTA, TRABALHADOR, PEQUENOS_COMPANHEIROS, PAIS, TAREFEIROS_DO_BEM
}
entity Polo{
id Long,
nome String,
numero String,
reunir String,
localizacao String
}
relationship OneToMany {
Polo{inscricoes} to Inscricao{polo},
Evento{inscricoes} to Inscricao{evento},
Comissao{inscricoes} to Inscricao{comissao},
Usuario{inscricoes} to Inscricao{usuario},
Usuario{inscricoes} to Inscricao{usuario},
FaixaEtaria{turmas} to Turma{faixaEtaria},
Turma{inscritos} to Inscricao{turma},
Turma{evangelizadores} to Inscricao{responsavel},
Alojamento{inscritos} to Inscricao{alojamento}
}
relationship OneToOne{
Alojamento{responsavel} to Inscricao{alojamentoResponsavel}
}
entity FaixaEtaria{
id Long,
nome String,
idadeMin Long,
idadeMaxima Long,
descricao String
}
entity Turma{
id Long,
nome String
}
entity Alojamento{
id Long,
nome String,
sala String,
local String,
genero Genero
}
// Set pagination options
paginate * with pagination
dto * with mapstruct
// Set service options to all except few
service all with serviceImpl
// Set an angular suffix
angularSuffix * with comeerj