All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.entity.ftl Maven / Gradle / Ivy

package ${packageName}.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lframework.starter.mybatis.entity.BaseEntity;
<#if importPackages??>
    <#list importPackages as p>
import ${p};
    

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 

* ${classDescription} *

* <#if author??> * @author ${author} */ @Data @EqualsAndHashCode(callSuper = true) @TableName("${tableName}") public class ${className} extends BaseEntity { private static final long serialVersionUID = 1L; <#list columns as column> /** * ${column.description} */ <#if !column.defaultConvertType> <#if !column.isKey> @TableField(value = "${column.columnName}"<#if column.fill?? && column.fill>, fill = FieldFill.${column.fillStrategy}) <#else> @TableId(value = "${column.columnName}"<#if column.autoIncrKey>, type = IdType.AUTO<#if column.fill?? && column.fill>, fill = FieldFill.${column.fillStrategy}<#if column.autoIncrKey>, type = IdType.AUTO) <#else> <#if !column.isKey && column.fill?? && column.fill> @TableField(fill = FieldFill.${column.fillStrategy}) <#if column.defaultConvertType && column.isKey && column.autoIncrKey> @TableId(value = "${column.columnName}", type = IdType.AUTO) private ${column.type} ${column.name}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy