|
@@ -1,18 +1,22 @@
|
|
|
package ${package.Entity};
|
|
|
|
|
|
-<#list table.importPackages as pkg>
|
|
|
+<#list (table.importPackages)?sort as pkg>
|
|
|
+<#if !pkg?contains('java.')>
|
|
|
import ${pkg};
|
|
|
-</#list>
|
|
|
-<#if swagger2>
|
|
|
-import io.swagger.annotations.ApiModel;
|
|
|
-import io.swagger.annotations.ApiModelProperty;
|
|
|
</#if>
|
|
|
+</#list>
|
|
|
<#if entityLombokModel>
|
|
|
import lombok.Data;
|
|
|
<#--import lombok.EqualsAndHashCode;-->
|
|
|
-import lombok.experimental.Accessors;
|
|
|
+<#--import lombok.experimental.Accessors;-->
|
|
|
</#if>
|
|
|
|
|
|
+<#list (table.importPackages)?sort as pkg>
|
|
|
+<#if pkg?contains('java.')>
|
|
|
+import ${pkg};
|
|
|
+</#if>
|
|
|
+</#list>
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* ${table.comment!}
|
|
@@ -28,7 +32,7 @@ import lombok.experimental.Accessors;
|
|
|
<#--<#else>-->
|
|
|
<#--@EqualsAndHashCode(callSuper = false)-->
|
|
|
<#--</#if>-->
|
|
|
-@Accessors(chain = true)
|
|
|
+<#--@Accessors(chain = true)-->
|
|
|
</#if>
|
|
|
<#if table.convert>
|
|
|
@TableName("${table.name}")
|