From 1144a2137e95bc6c8875838ced662b115058b1f5 Mon Sep 17 00:00:00 2001 From: thj <18883325829@163.com> Date: Thu, 7 Oct 2021 09:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F=20:=202021?= =?UTF-8?q?-10-07=20=E8=83=8C=E6=99=AF=20:=20jpa=20=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=94=9F=E6=88=90=E7=9A=84=20=E8=A1=A8?= =?UTF-8?q?=E5=90=8D=20=E5=92=8C=20=E8=BE=93=E5=85=A5=E7=9A=84=20sql=20?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E4=B8=8D=E4=B8=80=E8=87=B4,=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20=E4=BB=8E=20=E6=95=B0=E6=8D=AE=E5=BA=93=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E7=9B=B4=E6=8E=A5=E5=A4=8D=E5=88=B6=E4=B8=8B?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=20create=20=E8=AF=AD=E5=8F=A5=20=E7=BB=8F?= =?UTF-8?q?=E8=BF=87=20=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=94=9F=E6=88=90=E7=9A=84=20=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=B1=BB=20=E6=96=87=E4=BB=B6=E9=9C=80=E8=A6=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=A1=A8=E5=90=8D=20=E6=89=8D=E8=83=BD=E5=A4=9F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20=E4=BF=AE=E6=94=B9=20:=20=20=20=20=201=20j?= =?UTF-8?q?pa.entity.ftl=20=E5=B0=86=20table=5Fname=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=20=E6=94=B9=E4=B8=BA=20originaltablename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/code-generator/jpa/entity.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator-web/src/main/resources/templates/code-generator/jpa/entity.ftl b/generator-web/src/main/resources/templates/code-generator/jpa/entity.ftl index ceb1456..a045f5d 100644 --- a/generator-web/src/main/resources/templates/code-generator/jpa/entity.ftl +++ b/generator-web/src/main/resources/templates/code-generator/jpa/entity.ftl @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModelProperty; */ @Entity <#if isLombok?exists && isLombok==true>@Data -<#if isComment?exists && isComment==true>@Table(name="${classInfo.tableName}")<#if isSwagger?exists && isSwagger==true> +<#if isComment?exists && isComment==true>@Table(name="${classInfo.originTableName}")<#if isSwagger?exists && isSwagger==true> @ApiModel("${classInfo.classComment}") public class ${classInfo.className} implements Serializable {