febs-server/febs-server-generator/src/main/resources/generator/templates/entity.ftl
@@ -13,10 +13,14 @@
import com.baomidou.mybatisplus.annotation.TableName;
/**
* ${tableComment} Entity
*
* name:${className}
* package:${basePackage}.${controllerPackage}
* description:${tableComment}数据表映射实体
*
* @author ${author}
* @date ${date}
* @since JDK1.8
*/
@Data
@TableName("${tableName}")
@@ -42,7 +46,7 @@
    private Date ${column.field?uncap_first};
        </#if>
        <#if column.type = 'int' || column.type = 'smallint'>
        <#if column.type = 'int' || column.type = 'smallint'|| column.type = 'bit'>
    private Integer ${column.field?uncap_first};
        </#if>