-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.roo
58 lines (49 loc) · 2.27 KB
/
create.roo
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
project --topLevelPackage com.jaspions.giza
jpa setup --provider ECLIPSELINK --database MYSQL --databaseName giza --userName root --password root
// class Pais
entity jpa --class ~.domain.Pais --testAutomatically
field string --fieldName nome --notNull
field string --fieldName sigla --notNull
// class UnidadeFederativa
entity jpa --class ~.domain.UnidadeFederativa --testAutomatically
field string --fieldName nome --notNull
field string --fieldName sigla --notNull
field reference --fieldName pais --type ~.domain.Pais --notNull
// class Municipio
entity jpa --class ~.domain.Municipio --testAutomatically
field string --fieldName nome --notNull
field reference --fieldName unidadeFederativa --type ~.domain.UnidadeFederativa --notNull
// class OrgaoEmissorDocumento
entity jpa --class ~.domain.OrgaoEmissorDocumento --testAutomatically
field string --fieldName nome --notNull
field string --fieldName sigla --notNull
// class DocumentoIdentidade
entity jpa --class ~.domain.DocumentoIdentidade --testAutomatically
field string --fieldName numero --notNull
field reference --fieldName orgaoEmissorDocumento --type ~.domain.OrgaoEmissorDocumento --notNull
field reference --fieldName unidadeFederativa --type ~.domain.UnidadeFederativa --notNull
//enum Sexo
enum type --class ~.domain.Sexo
enum constant --name MASCULINO
enum constant --name FEMININO
//enum TipoContato
enum type --class ~.domain.TipoContato
enum constant --name EMAIL
enum constant --name TELEFONE
enum constant --name FAX
enum constant --name CELULAR
// class Contato
entity jpa --class ~.domain.Contato --testAutomatically
field enum --fieldName tipoContato --type ~.domain.TipoContato
field string --fieldName descricaoTipoPersonalizado
field string --fieldName descricao --notNull
// class PessoaFisica
entity jpa --class ~.domain.PessoaFisica --testAutomatically
field string --fieldName nome --notNull
field string --fieldName apelido
field enum --fieldName sexo --type ~.domain.Sexo
field string --fieldName cpf --notNull
field reference --fieldName documentoIdentidade --type ~.domain.DocumentoIdentidade --notNull
field date --fieldName dataNascimento --notNull --type java.util.Date --past
field reference --fieldName municipioNaturalidade --type ~.domain.Municipio --notNull
field set --fieldName contatos --type ~.domain.Contato