vm10.java.more2more.domainBo.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ucode-cms-code Show documentation
Show all versions of ucode-cms-code Show documentation
Java知识图谱之内容管理系统(CMS)代码自动生成部分
package ${packageName}.entity.bo.${MidClassName};
#foreach ($item in $importList)
${item}
#end
#if( "$!tableComment" != "" )
/** ${tableComment} */
#end
@Data
## @NoArgsConstructor
@AllArgsConstructor
#if( "$!column.columnComment" != "" )
@ApiModel(description = "${column.columnComment}")
#end
public class ${ClassName}Bo extends ${ClassName}
{
private static final long serialVersionUID = 1L;
#foreach ($column in $columns)
#if(!$tables.isSuperColumn($column.javaField))
#if($configEntity.domain.addNoteInfo && "$!column.columnComment" != "" )
/** ${column.columnComment} */
#end
#if($configEntity.useSwagger&&"$!column.columnComment" != "")
@ApiModelProperty(value = "${column.columnComment}", position = ${column.ordinalPosition})
#end
#if($column.fieldType=="LocalDate")
#if($configEntity.domain.dateFormat)
@JsonFormat(pattern = "yyyy-MM-dd")
#end
#if($configEntity.domain.dateSerialize)
@JsonDeserialize(using = LocalDateDeserializer.class)
@JsonSerialize(using = LocalDateSerializer.class)
#end
#elseif($column.fieldType=="LocalDateTime")
#if($configEntity.domain.dateFormat)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
#end
#if($configEntity.domain.dateSerialize)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
@JsonSerialize(using = LocalDateTimeSerializer.class)
#end
#end
private $column.fieldType $column.fieldName;
#end
#end
public ${ClassName}Bo() {
}
#if($configEntity.domain.addConstructionMethod)
public ${ClassName}Bo(${ClassName} ${className}) {
super(${className});
}
#end
}