mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2026-03-22 07:28:25 +08:00
修改日期 : 2021-10-07
背景 : jpa 模板文件生成的 表名 和 输入的 sql 语句不一致,导致 从 数据库客户端直接复制下来的 create 语句 经过 生成代码 工具生成的 实体类 文件需要修改表名 才能够使用
修改 :
1 jpa.entity.ftl 将 table_name 统一 改为 originaltablename
This commit is contained in:
@@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty;</#if>
|
|||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
<#if isLombok?exists && isLombok==true>@Data</#if>
|
<#if isLombok?exists && isLombok==true>@Data</#if>
|
||||||
<#if isComment?exists && isComment==true>@Table(name="${classInfo.tableName}")</#if><#if isSwagger?exists && isSwagger==true>
|
<#if isComment?exists && isComment==true>@Table(name="${classInfo.originTableName}")</#if><#if isSwagger?exists && isSwagger==true>
|
||||||
@ApiModel("${classInfo.classComment}")</#if>
|
@ApiModel("${classInfo.classComment}")</#if>
|
||||||
public class ${classInfo.className} implements Serializable {
|
public class ${classInfo.className} implements Serializable {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user