@cronapp/templates 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/$global/data-layer/ENTITIES.ftl +6 -1
- package/file/blockly/EmptyBlockly/__Name__.blockly.ftl +1 -1
- package/file/crud/phonegap_crud_view/__FileName__.view.html.ftl +11 -11
- package/file/report/Blank/template.properties +2 -2
- package/file/report/Blank/template_pt_BR.properties +4 -2
- package/file/report/CrossTabWithDetailing/template.properties +1 -1
- package/file/report/CrossTabWithDetailing/template_pt_BR.properties +3 -1
- package/file/report/Indicators/template.properties +1 -1
- package/file/report/Indicators/template_pt_BR.properties +3 -1
- package/file/report/InsuranceWithSelectingCountry/template.properties +1 -1
- package/file/report/InsuranceWithSelectingCountry/template_pt_BR.properties +3 -1
- package/file/report/InvoiceQuotation/template.properties +1 -1
- package/file/report/InvoiceQuotation/template_pt_BR.properties +3 -1
- package/file/report/InvoiceSoftware/template.properties +1 -1
- package/file/report/InvoiceSoftware/template_pt_BR.properties +3 -1
- package/file/report/Labels/template.properties +1 -1
- package/file/report/Labels/template_pt_BR.properties +3 -1
- package/file/report/MasterDetail/template.properties +1 -1
- package/file/report/MasterDetail/template_pt_BR.properties +3 -1
- package/file/report/MultiColumnList/template.properties +1 -1
- package/file/report/MultiColumnList/template_pt_BR.properties +3 -1
- package/file/report/PurchaseOrder/template.properties +1 -1
- package/file/report/PurchaseOrder/template_pt_BR.properties +3 -1
- package/file/report/SimpleGroup/template.properties +1 -1
- package/file/report/SimpleGroup/template_pt_BR.properties +3 -1
- package/file/report/Tree/template.properties +1 -1
- package/file/report/Tree/template_pt_BR.properties +3 -1
- package/file/report/TreeWithHeadersAndFooters/template.properties +1 -1
- package/file/report/TreeWithHeadersAndFooters/template_pt_BR.properties +3 -1
- package/file/report/TwoMastersOnOneDetail/template.properties +1 -1
- package/file/report/TwoMastersOnOneDetail/template_pt_BR.properties +3 -1
- package/package.json +1 -1
- package/project/L/group.properties +4 -0
- package/project/L/microservices.png +0 -0
- package/project/L/report-custom/project.svg +32 -0
- package/project/L/report-custom/template.properties +7 -0
- package/project/L/report-custom/template_en_US.properties +5 -0
- package/project/L/report-custom/template_pt_BR.properties +5 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/__linksInherit +0 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/template.properties +2 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_en_US.properties +1 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_pt_BR.properties +1 -0
- package/project/M/cronapp-rad-project-mobile-cordova/__linksInherit +2 -1
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/__copydata.ftl +4 -4
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/user.view.html +4 -4
- package/project/M/cronapp-rad-project-mobile-cordova/template.properties +6 -3
- package/project/M/cronapp-rad-project-mobile-cordova/template_en_US.properties +3 -1
- package/project/M/cronapp-rad-project-mobile-cordova/template_pt_BR.properties +3 -1
- package/project/S/business-service/template.properties +0 -1
- package/project/S/data-service/diagram/app.umlcd +1 -1
- package/project/S/data-service/src/main/java/META-INF/datasources/__copydata.ftl +0 -0
- package/project/S/data-service/src/main/java/app/entity/Sample.java +1 -0
- package/project/S/data-service/template.properties +0 -1
- package/project/W/cronapp-rad-project/__copydata.ftl +0 -1
- package/project/W/cronapp-rad-project/config/app.config.ftl +5 -0
- package/project/W/cronapp-rad-project/diagram/app.umlcd +150 -0
- package/project/W/cronapp-rad-project/diagram/app.umlcd.ftl +150 -0
- package/project/W/cronapp-rad-project/pom.xml.ftl +3 -1
- package/project/W/cronapp-rad-project/src/main/java/META-INF/persistence.xml.ftl +1 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/InvalidatedTokenDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/__copydata.ftl +2 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/InvalidatedToken.java +113 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/__copydata.ftl +2 -0
- package/project/W/cronapp-rad-project/src/main/java/i18n/Messages_en_US.properties +2 -1
- package/project/W/cronapp-rad-project/src/main/java/i18n/Messages_pt_BR.properties +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/index.html.ftl +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/index.html.ftl +4 -0
- package/project/W/cronapp-rad-project/template.properties +2 -1
- package/project/W/cronapp-rad-project/template_en_US.properties +1 -0
- package/project/W/cronapp-rad-project/template_pt_BR.properties +1 -0
- package/templates/low-code/data-layer/ENTITIES.ftl +22 -0
- package/templates/low-code/nature.png +0 -0
- package/project/W/cronapp-rad-project/Dockerfile +0 -30
|
@@ -56,6 +56,9 @@ import org.eclipse.persistence.annotations.JoinFetchType;
|
|
|
56
56
|
<#if clazz.hasXML()>
|
|
57
57
|
import cronapi.database.ByteConverter;
|
|
58
58
|
</#if>
|
|
59
|
+
<#if clazz.hasNotEmpty()>
|
|
60
|
+
import javax.validation.constraints.NotEmpty;
|
|
61
|
+
</#if>
|
|
59
62
|
<#assign hasCloudStorage = clazz.hasCloudStorage()>
|
|
60
63
|
<#if hasCloudStorage>
|
|
61
64
|
import cronapi.CronapiCloud;
|
|
@@ -87,6 +90,9 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
87
90
|
<#if (clazz.multitenantClass)>
|
|
88
91
|
import org.eclipse.persistence.annotations.*;
|
|
89
92
|
</#if>
|
|
93
|
+
|
|
94
|
+
import cronapp.framework.core.persistence.*;
|
|
95
|
+
|
|
90
96
|
/**
|
|
91
97
|
* Classe que representa a tabela <#if tableName??>${tableName}<#else>${clazz.name?upper_case}</#if>
|
|
92
98
|
* @generated
|
|
@@ -164,6 +170,14 @@ import org.eclipse.persistence.annotations.*;
|
|
|
164
170
|
</#list>
|
|
165
171
|
})
|
|
166
172
|
</#if>
|
|
173
|
+
<#if clazz.role == "AssociationClass">
|
|
174
|
+
<#assign cronappTableRole = "CronappTableRole.ASSOCIATION_CLASS">
|
|
175
|
+
<#elseif clazz.role == "Class">
|
|
176
|
+
<#assign cronappTableRole = "CronappTableRole.CLASS">
|
|
177
|
+
<#else>
|
|
178
|
+
<#assign cronappTableRole = "CronappTableRole.AUTO">
|
|
179
|
+
</#if>
|
|
180
|
+
@CronappTable(role=${cronappTableRole})
|
|
167
181
|
public class ${clazz.name} implements Serializable {
|
|
168
182
|
<#if clazz.hasEncryption()>
|
|
169
183
|
/**
|
|
@@ -195,6 +209,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
195
209
|
</#if>
|
|
196
210
|
<#if (field.isUUID())!false>
|
|
197
211
|
@Convert("uuid")
|
|
212
|
+
</#if>
|
|
213
|
+
<#if field.isNotEmpty()>
|
|
214
|
+
@NotEmpty
|
|
198
215
|
</#if>
|
|
199
216
|
<#if field.isVersion()>
|
|
200
217
|
@Version
|
|
@@ -226,6 +243,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
226
243
|
<#if field.columnDefinition?? && field.columnDefinition == "TEXT" && persistenceProvider?upper_case == "ORACLE">
|
|
227
244
|
@Lob
|
|
228
245
|
</#if>
|
|
246
|
+
@CronappColumn(attributeType="${field.attributeType}"<#if field.label?has_content>, label="${field.label}"</#if><#if field.mask?has_content>, mask="${field.mask}"</#if><#if field.searchable>, searchable = true</#if><#if field.defaultValue?has_content>, defaultValue = "${field.defaultValue?j_string}"</#if>)
|
|
229
247
|
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
230
248
|
</#if>
|
|
231
249
|
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${name}<#if field.defaultValue?has_content> = ${field.defaultValue}<#elseif field.primaryKey && field.generationType?? && field.generationType == "UUID"> = UUID.randomUUID().toString().toUpperCase()</#if>;
|
|
@@ -242,6 +260,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
242
260
|
</#if>
|
|
243
261
|
<#if (field.isUUID())!false>
|
|
244
262
|
@Convert("uuid")
|
|
263
|
+
</#if>
|
|
264
|
+
<#if field.isNotEmpty()>
|
|
265
|
+
@NotEmpty
|
|
245
266
|
</#if>
|
|
246
267
|
<#if (field.XML)!false>
|
|
247
268
|
@Convert("bytes")
|
|
@@ -286,6 +307,7 @@ public class ${clazz.name} implements Serializable {
|
|
|
286
307
|
<#if field.columnDefinition?? && field.columnDefinition == "TEXT" && persistenceProvider?upper_case == "ORACLE">
|
|
287
308
|
@Lob
|
|
288
309
|
</#if>
|
|
310
|
+
@CronappColumn(attributeType="${field.attributeType}"<#if field.label?has_content>, label="${field.label}"</#if><#if field.mask?has_content>, mask="${field.mask}"</#if><#if field.searchable>, searchable = true</#if><#if field.defaultValue?has_content>, defaultValue = "${field.defaultValue?j_string}"</#if>)
|
|
289
311
|
@Column(name = "${field.dbFieldName?replace("\"", "\\\"")}", nullable = ${field.nullable?c}<#if !field.primaryKey>, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c}<#if field.columnDefinition?? && (field.columnDefinition != "TEXT" || persistenceProvider?upper_case != "ORACLE")>, columnDefinition = "${field.columnDefinition}"</#if>)
|
|
290
312
|
</#if>
|
|
291
313
|
</#if>
|
|
Binary file
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
## Consulte a documentação do Docker em https://docs.cronapp.io para informações sobre o conteúdo desse arquivo.
|
|
2
|
-
|
|
3
|
-
FROM ubuntu:18.04 AS maven_builder
|
|
4
|
-
RUN apt update && apt install -y maven openjdk-11-jdk npm git bash
|
|
5
|
-
WORKDIR /app
|
|
6
|
-
ADD pom.xml /app/pom.xml
|
|
7
|
-
RUN git config --global url."https://".insteadOf git://
|
|
8
|
-
ARG TIER
|
|
9
|
-
ARG CONTEXT_USE
|
|
10
|
-
ARG MOBILE_APP
|
|
11
|
-
|
|
12
|
-
## Para repositório EXTERNO não é necessário alterações.
|
|
13
|
-
## Para repositório INTERNO comente as linhas 16, 17 e 18 e retire os comentários nas linhas 21, 22, 23 e 24.
|
|
14
|
-
|
|
15
|
-
## Usando repositórios externo - JAR e NPM
|
|
16
|
-
RUN mvn dependency:go-offline -B
|
|
17
|
-
ADD . /app
|
|
18
|
-
RUN cd /app && mvn package -X -Dcronapp.profile=${TIER} -Dcronapp.useContext=${CONTEXT_USE} -Dcronapp.mobileapp=${MOBILE_APP}
|
|
19
|
-
|
|
20
|
-
## Usando repositórios interno - JAR e NPM
|
|
21
|
-
#ADD settings.xml $HOME/.m2/settings.xml
|
|
22
|
-
#RUN npm config set registry https://my.registry.com/your-repository/name && mvn -s /app/settings.xml dependency:go-offline -B
|
|
23
|
-
#ADD . /app
|
|
24
|
-
#RUN cd /app && mvn -s /app/settings.xml package -X -Dcronapp.profile=${TIER} -Dcronapp.useContext=${CONTEXT_USE} -Dcronapp.mobileapp=${MOBILE_APP}
|
|
25
|
-
|
|
26
|
-
FROM tomcat:9.0.17-jre11
|
|
27
|
-
RUN rm -rf /usr/local/tomcat/webapps/* && groupadd tomcat && useradd -s /bin/false -M -d /usr/local/tomcat -g tomcat tomcat
|
|
28
|
-
COPY --from=maven_builder /app/target/*.war /usr/local/tomcat/webapps/ROOT.war
|
|
29
|
-
RUN chown tomcat:tomcat -R /usr/local/tomcat
|
|
30
|
-
USER tomcat
|