-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
QueryVO.vm
34 lines (28 loc) · 1.03 KB
/
QueryVO.vm
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
#if($StringUtils.isNotBlank($tablesConfig.voPackageName))
package $tablesConfig.voPackageName;
#end
#set($useLombok = $tablesConfig.isUseLombok())
#set($useSwaggerUI = $tablesConfig.isUseSwaggerUIComment())
#set($serializable = $tablesConfig.isSerializable())
#if($useLombok)
@lombok.Data
#end
#if($useSwaggerUI)
@io.swagger.annotations.ApiModel("$LocaleContextHolder.format("controller_query") $table.tableComment")
#end
public class ${table.entityName}Query${tablesConfig.voSuffixName} #if($serializable) implements java.io.Serializable #end {
#if($serializable)
private static final long serialVersionUID = 1L;
#end
#foreach($column in $table.columns)
#if($tablesConfig.isUseFieldComment() && !$column.columnComment.isEmpty())
/**
* $column.getColumnComment()
*/
#end
#if($useSwaggerUI && !$column.columnComment.isEmpty())
@io.swagger.annotations.ApiModelProperty("$column.columnComment")
#end
private $column.javaDataType.name $column.fieldName;
#end
}