@cronapp/templates 2.9.6-SP.39 → 2.9.6-SP.40
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.
|
@@ -10,7 +10,9 @@ import ${import};
|
|
|
10
10
|
<#if (clazz.multitenantClass)>
|
|
11
11
|
import org.eclipse.persistence.annotations.*;
|
|
12
12
|
</#if>
|
|
13
|
-
|
|
13
|
+
<#if clazz.hasNotEmpty()>
|
|
14
|
+
import javax.validation.constraints.NotEmpty;
|
|
15
|
+
</#if>
|
|
14
16
|
/**
|
|
15
17
|
* Classe que representa a tabela <#if tableName??>${tableName}<#else>${clazz.name?upper_case}</#if>
|
|
16
18
|
* @generated
|
|
@@ -96,6 +98,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
96
98
|
@Column(name = "${field.dbFieldName}"<#if !field.primaryKey>, nullable = ${field.nullable?c}, 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})
|
|
97
99
|
</#if>
|
|
98
100
|
</#if>
|
|
101
|
+
<#if !field.isNotEmpty()>
|
|
102
|
+
@NotEmpty(message="Não permite vazio.")
|
|
103
|
+
</#if>
|
|
99
104
|
<#if (field.ignore)>
|
|
100
105
|
@JsonIgnore
|
|
101
106
|
</#if>
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -195,6 +198,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
195
198
|
</#if>
|
|
196
199
|
<#if (field.isUUID())!false>
|
|
197
200
|
@Convert("uuid")
|
|
201
|
+
</#if>
|
|
202
|
+
<#if field.isNotEmpty()>
|
|
203
|
+
@NotEmpty
|
|
198
204
|
</#if>
|
|
199
205
|
<#if field.isVersion()>
|
|
200
206
|
@Version
|
|
@@ -242,6 +248,9 @@ public class ${clazz.name} implements Serializable {
|
|
|
242
248
|
</#if>
|
|
243
249
|
<#if (field.isUUID())!false>
|
|
244
250
|
@Convert("uuid")
|
|
251
|
+
</#if>
|
|
252
|
+
<#if field.isNotEmpty()>
|
|
253
|
+
@NotEmpty
|
|
245
254
|
</#if>
|
|
246
255
|
<#if (field.XML)!false>
|
|
247
256
|
@Convert("bytes")
|