You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package ${package}.${moduleName}.entity;
-
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.baomidou.mybatisplus.extension.activerecord.Model;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- #if(${hasBigDecimal})
- import java.math.BigDecimal;
- #end
- import java.time.LocalDateTime;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.NoArgsConstructor;
- /**
- * <p>
- * ${comments}
- * </p>
- *
- * @author ${author}
- * @date Created in ${datetime}
- */
- @Data
- @NoArgsConstructor
- @TableName("${tableName}")
- @ApiModel(description = "${comments}")
- @EqualsAndHashCode(callSuper = true)
- public class ${className} extends Model<${className}> {
- private static final long serialVersionUID = 1L;
-
- #foreach ($column in $columns)
- /**
- * $column.comments
- */
- #if($column.columnName == $pk.columnName)
- @TableId
- #end
- @ApiModelProperty(value = "$column.comments")
- private $column.attrType $column.lowerAttrName;
- #end
-
- }
|