From 6425753f43ced00648cd5ab1324cfcb53db526d9 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Tue, 8 Mar 2022 13:39:27 -0500 Subject: [PATCH 1/3] Documentation Updates --- core/mybatis-generator-core/pom.xml | 7 +- core/mybatis-generator-core/src/site/site.xml | 5 +- .../xhtml/generatedobjects/dynamicSql.xhtml | 8 +- .../generatedobjects/dynamicSqlKotlin.xhtml | 49 ++++++------ .../src/site/xhtml/reference/building.xhtml | 8 +- .../src/site/xhtml/reference/logging.xhtml | 75 +++++++++++-------- .../site/xhtml/running/runningWithMaven.xhtml | 2 +- .../src/test/resources/log4j.properties | 30 -------- .../src/test/resources/logback.xml | 28 +++++++ .../src/main/resources/log4j.properties | 32 -------- 10 files changed, 112 insertions(+), 132 deletions(-) delete mode 100644 core/mybatis-generator-core/src/test/resources/log4j.properties create mode 100644 core/mybatis-generator-core/src/test/resources/logback.xml delete mode 100644 core/mybatis-generator-systests-mybatis3/src/main/resources/log4j.properties diff --git a/core/mybatis-generator-core/pom.xml b/core/mybatis-generator-core/pom.xml index d616fc7427..836107a506 100644 --- a/core/mybatis-generator-core/pom.xml +++ b/core/mybatis-generator-core/pom.xml @@ -1,7 +1,7 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + diff --git a/core/mybatis-generator-systests-mybatis3/src/main/resources/log4j.properties b/core/mybatis-generator-systests-mybatis3/src/main/resources/log4j.properties deleted file mode 100644 index e14935d5f9..0000000000 --- a/core/mybatis-generator-systests-mybatis3/src/main/resources/log4j.properties +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright 2006-2016 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# log4j.properties for - -# Set root category priority to ERROR and its only appender to LOGFILE. -log4j.rootCategory=ERROR, CONSOLE - -#Spring Framework -#log4j.logger.org.springframework=DEBUG -#log4j.logger.org.springframework.orm=DEBUG -#log4j.logger.org.springframework.transaction=DEBUG - -#log4j.logger.java.sql=DEBUG - -# CONSOLE is set to be a ConsoleAppender using a PatternLayout. -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=%-d{HH:mm:ss} %-5p %60.60c %-25.25M %m%n From daf3e68f2eeb1a8d4bf45d100afbbbbed552ba71 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Tue, 8 Mar 2022 13:59:51 -0500 Subject: [PATCH 2/3] Documentation Updates --- .../xhtml/generatedobjects/dynamicSql.xhtml | 15 ++++++------- .../generatedobjects/dynamicSqlKotlin.xhtml | 21 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/mybatis-generator-core/src/site/xhtml/generatedobjects/dynamicSql.xhtml b/core/mybatis-generator-core/src/site/xhtml/generatedobjects/dynamicSql.xhtml index 2cce19d6a5..ae0ed19f61 100644 --- a/core/mybatis-generator-core/src/site/xhtml/generatedobjects/dynamicSql.xhtml +++ b/core/mybatis-generator-core/src/site/xhtml/generatedobjects/dynamicSql.xhtml @@ -87,16 +87,17 @@ in either a direct or qualified manner - "id" or "tableCode.id".

Usage of the Mapper Classes

The following methods work the same as the other runtimes and we won't cover them here:

There are no "by example" methods. Instead, there are general purpose methods that allow you to specify a -where clause with a lambda. The generator will create the following general:

+ where clause with a lambda. The generator will create the following general methods: