-
Notifications
You must be signed in to change notification settings - Fork 138
/
celerio-maven-plugin.xml
147 lines (133 loc) · 6.38 KB
/
celerio-maven-plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<celerio xmlns="http://www.jaxio.com/schema/celerio" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jaxio.com/schema/celerio ./celerio.xsd">
<configuration rootPackage="com.mycompany.myapp" applicationName="sampleapp">
<!-- Which tables are used for generation -->
<tables>
<!-- <table include="false" pattern="*_AUDIT"/> -->
<table include="false" pattern="jhi_persistent_*"/>
</tables>
<!-- global number mapping (optional) -->
<numberMappings>
<numberMapping mappedType="M_BOOLEAN" columnSizeMin="1" columnSizeMax="2" columnDecimalDigitsMin="0"
columnDecimalDigitsMax="0"/>
<!-- <numberMapping mappedType="M_BIGDECIMAL" columnSizeMin="10" columnDecimalDigitsMin="4"/> -->
</numberMappings>
<!-- global date mapping (optional) -->
<dateMappings>
<!-- <dateMapping columnNameRegExp="VERSION" mappedType="M_UTILDATE"/> -->
<dateMapping columnJdbcType="TIMESTAMP" mappedType="M_INSTANT"/>
<dateMapping columnJdbcType="DATE" mappedType="M_LOCALDATE"/>
</dateMappings>
<headerComment>
<lines>
<line>Project home: https://github.com/jaxio/celerio-angular-quickstart</line>
<line></line>
<line>Source code generated by Celerio, an Open Source code generator by Jaxio.</line>
<line>Documentation: http://www.jaxio.com/documentation/celerio/</line>
<line>Source code: https://github.com/jaxio/celerio/</line>
<line>Follow us on twitter: @jaxiosoft</line>
<line>This header can be customized in Celerio conf...</line>
</lines>
</headerComment>
</configuration>
<!-- CHANGE IT OR COMMENT IT IF YOU USE YOUR OWN DATABASE -->
<entityConfigs>
<entityConfig tableName="USER">
<columnConfigs>
<columnConfig columnName="civility" sharedEnumName="Civility"/>
<columnConfig columnName="country_code" sharedEnumName="CountryCode"/>
<columnConfig columnName="password" searchField="false" searchResult="false"/>
</columnConfigs>
</entityConfig>
<entityConfig tableName="PASSPORT">
<columnConfigs>
<columnConfig columnName="holder_id" associationDirection="BIDIRECTIONAL">
<oneToManyConfig var="passportHolder" />
<inverseOneToOneConfig var="passport" /><!-- var that is generated on User entity side -->
</columnConfig>
</columnConfigs>
</entityConfig>
<entityConfig tableName="AUTHOR">
<columnConfigs>
<columnConfig columnName="first_name" min="2" searchResult="true" displayOrder="3"/>
<columnConfig columnName="last_name" min="2" searchResult="true" displayOrder="2"/>
<columnConfig columnName="civility" sharedEnumName="Civility" searchResult="true" displayOrder="1"/>
<columnConfig columnName="favorite_author_id" searchResult="true" displayOrder="4"/>
</columnConfigs>
</entityConfig>
<entityConfig tableName="BOOK">
<columnConfigs>
<columnConfig columnName="author_id">
<!-- will generate the one to many association on the Author side -->
<oneToManyConfig elementVar="book" var="books" orphanRemoval="true"/>
</columnConfig>
<columnConfig columnName="co_author_id" searchField="false" />
<columnConfig columnName="extract_binary">
<labels>
<label lang="fr" value="Extrait (fichier)..."/>
<label value="Extract (file)..."/>
</labels>
</columnConfig>
</columnConfigs>
</entityConfig>
<entityConfig tableName="PROJECT">
<columnConfigs>
<columnConfig columnName="author_id">
<!-- will generate the one to many association on the Author side -->
<oneToManyConfig elementVar="project" var="projects" orphanRemoval="true"/>
</columnConfig>
</columnConfigs>
</entityConfig>
<entityConfig tableName="USE_CASE_3">
<columnConfigs>
<columnConfig columnName="id2">
<!-- will generate the one to many association on the UseCase2 side -->
<oneToManyConfig var="useCase3s" orphanRemoval="true"/>
</columnConfig>
</columnConfigs>
</entityConfig>
</entityConfigs>
<!-- CHANGE IT OR COMMENT IT IF YOU USE YOUR OWN DATABASE -->
<!-- Generate enums used by the entities above -->
<sharedEnumConfigs>
<sharedEnumConfig name="Civility" type="STRING">
<enumValues>
<enumValue value="MR">
<labels>
<label value="Mister"/>
<label value="Monsieur" lang="fr"/>
</labels>
</enumValue>
<enumValue value="MS">
<labels>
<label value="Miss"/>
<label value="Madame" lang="fr"/>
</labels>
</enumValue>
</enumValues>
</sharedEnumConfig>
<sharedEnumConfig name="CountryCode" type="CUSTOM">
<enumValues>
<enumValue name="FRANCE" value="+33">
<labels>
<label value="France"/>
<label value="France" lang="fr"/>
</labels>
</enumValue>
<enumValue name="ITALY" value="+39">
<labels>
<label value="Italy"/>
<label value="Italie" lang="fr"/>
</labels>
</enumValue>
<enumValue name="USA" value="+1">
<labels>
<label value="United-States"/>
<label value="Etats-Unis" lang="fr"/>
</labels>
</enumValue>
</enumValues>
</sharedEnumConfig>
</sharedEnumConfigs>
</celerio>