From 886580638c20e93c03994107043ffa7ce948e2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Fri, 10 Aug 2018 11:36:09 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90mapper.xml=20=E5=8C=85=E5=90=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E4=B8=BB=E9=94=AE=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx-codegen/src/main/resources/template/Entity.java.vm | 2 +- .../pigx-codegen/src/main/resources/template/Mapper.xml.vm | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pigx-visual/pigx-codegen/src/main/resources/template/Entity.java.vm b/pigx-visual/pigx-codegen/src/main/resources/template/Entity.java.vm index 380b9fada..9e2d2e1b0 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/template/Entity.java.vm +++ b/pigx-visual/pigx-codegen/src/main/resources/template/Entity.java.vm @@ -38,6 +38,6 @@ private $column.attrType $column.lowerAttrName; */ @Override protected Serializable pkVal() { - return this.$pk.columnName; + return this.$pk.lowerAttrName; } } diff --git a/pigx-visual/pigx-codegen/src/main/resources/template/Mapper.xml.vm b/pigx-visual/pigx-codegen/src/main/resources/template/Mapper.xml.vm index 0270fb82e..047f472c6 100755 --- a/pigx-visual/pigx-codegen/src/main/resources/template/Mapper.xml.vm +++ b/pigx-visual/pigx-codegen/src/main/resources/template/Mapper.xml.vm @@ -1,7 +1,7 @@ - + diff --git a/pom.xml b/pom.xml index 863ffe837..79d7ca212 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ - 1.4.1 + 1.4.2 2.0.3.RELEASE Finchley.RELEASE UTF-8