Skip to content

Commit 5a5a6b9

Browse files
committed
Merge branch 'master' into arg-name-based-constructor-automapping
# Conflicts: # src/main/java/org/apache/ibatis/executor/resultset/DefaultResultSetHandler.java # src/main/java/org/apache/ibatis/session/Configuration.java # src/test/java/org/apache/ibatis/builder/XmlConfigBuilderTest.java # src/test/java/org/apache/ibatis/builder/xsd/XmlConfigBuilderTest.java
2 parents dad8c13 + 5e89813 commit 5a5a6b9

File tree

1,254 files changed

+2770
-2680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,254 files changed

+2770
-2680
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2009-2020 the original author or authors.
2+
# Copyright 2009-2021 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -24,16 +24,38 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest, macOS-latest, windows-latest]
27-
java: [8, 11, 15, 16-ea]
27+
java: [8, 11, 16, 17-ea]
28+
distribution: ['adopt']
2829
fail-fast: false
2930
max-parallel: 4
3031
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
3132

3233
steps:
3334
- uses: actions/checkout@v2
3435
- name: Set up JDK
35-
uses: actions/setup-java@v1
36+
uses: actions/setup-java@v2
3637
with:
3738
java-version: ${{ matrix.java }}
39+
distribution: ${{ matrix.distribution }}
40+
- name: Cache local Maven m2
41+
uses: actions/cache@v2
42+
with:
43+
path: ~/.m2
44+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
45+
restore-keys: |
46+
${{ runner.os }}-m2
47+
- name: Set argLine command line option
48+
if: ${{ matrix.java != '8' }}
49+
run: echo 'ARG_LINE=-D"argLine=--illegal-access=permit"' >> $GITHUB_ENV
50+
- name: Set env command line option
51+
if: ${{ matrix.os == 'ubuntu-latest' }}
52+
run: echo 'ENV_TRAVIS="-Denv.TRAVIS"' >> $GITHUB_ENV
53+
- name: Test with Maven
54+
if: ${{ matrix.os != 'windows-latest' }}
55+
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true" $ENV_TRAVIS $ARG_LINE
56+
- name: Test with Maven
57+
if: ${{ matrix.os == 'windows-latest' && matrix.java == '8' }}
58+
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true"
3859
- name: Test with Maven
39-
run: ./mvnw test -B -D"license.skip=true"
60+
if: ${{ matrix.os == 'windows-latest' && matrix.java != '8' }}
61+
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true" -D"argLine=--illegal-access=permit"

.github/workflows/coveralls.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2009-2020 the original author or authors.
2+
# Copyright 2009-2021 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -25,9 +25,10 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: Set up JDK
28-
uses: actions/setup-java@v1
28+
uses: actions/setup-java@v2
2929
with:
3030
java-version: 8
31+
distribution: adopt
3132
- name: Report Coverage to Coveralls for Pull Requests
3233
if: github.event_name == 'pull_request'
3334
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER

.github/workflows/sonar.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
# Disabling shallow clone is recommended for improving relevancy of reporting
3232
fetch-depth: 0
3333
- name: Set up JDK
34-
uses: actions/setup-java@v1
34+
uses: actions/setup-java@v2
3535
with:
3636
java-version: 11
37+
distribution: adopt
3738
- name: Analyze with SonarCloud
3839
run: ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-3 -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dlicense.skip=true
3940
env:

.github/workflows/sonatype.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v2
3030
- name: Set up JDK
31-
uses: actions/setup-java@v1
31+
uses: actions/setup-java@v2
3232
with:
3333
java-version: 11
34+
distribution: adopt
3435
- name: Deploy to Sonatype
3536
run: ./mvnw deploy -DskipTests -B --settings ./.mvn/settings.xml -Dlicense.skip=true
3637
env:

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<extension>
2121
<groupId>fr.jcgay.maven</groupId>
2222
<artifactId>maven-profiler</artifactId>
23-
<version>3.0</version>
23+
<version>3.1.1</version>
2424
</extension>
2525
</extensions>

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
22
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MyBatis SQL Mapper Framework for Java
1212
![mybatis](http://mybatis.github.io/images/mybatis-logo.png)
1313

1414
The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented applications.
15-
MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or annotations.
15+
MyBatis couples objects with stored procedures or SQL statements using an XML descriptor or annotations.
1616
Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping tools.
1717

1818
Essentials

pom.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
<parent>
2323
<groupId>org.mybatis</groupId>
2424
<artifactId>mybatis-parent</artifactId>
25-
<version>32</version>
25+
<version>33</version>
2626
<relativePath />
2727
</parent>
2828

2929
<artifactId>mybatis</artifactId>
30-
<version>3.5.7-SNAPSHOT</version>
30+
<version>3.5.8-SNAPSHOT</version>
3131
<packaging>jar</packaging>
3232

3333
<name>mybatis</name>
@@ -145,27 +145,27 @@
145145
<dependency>
146146
<groupId>ognl</groupId>
147147
<artifactId>ognl</artifactId>
148-
<version>3.2.18</version>
148+
<version>3.2.21</version>
149149
<scope>compile</scope>
150150
<optional>true</optional>
151151
</dependency>
152152
<dependency>
153153
<groupId>org.javassist</groupId>
154154
<artifactId>javassist</artifactId>
155-
<version>3.27.0-GA</version>
155+
<version>3.28.0-GA</version>
156156
<scope>compile</scope>
157157
<optional>true</optional>
158158
</dependency>
159159
<dependency>
160160
<groupId>org.slf4j</groupId>
161161
<artifactId>slf4j-api</artifactId>
162-
<version>1.7.30</version>
162+
<version>1.7.32</version>
163163
<optional>true</optional>
164164
</dependency>
165165
<dependency>
166166
<groupId>org.slf4j</groupId>
167167
<artifactId>slf4j-log4j12</artifactId>
168-
<version>1.7.30</version>
168+
<version>1.7.32</version>
169169
<optional>true</optional>
170170
</dependency>
171171
<dependency>
@@ -177,7 +177,7 @@
177177
<dependency>
178178
<groupId>org.apache.logging.log4j</groupId>
179179
<artifactId>log4j-core</artifactId>
180-
<version>2.14.0</version>
180+
<version>2.14.1</version>
181181
<optional>true</optional>
182182
</dependency>
183183
<dependency>
@@ -197,7 +197,7 @@
197197
<dependency>
198198
<groupId>org.junit.jupiter</groupId>
199199
<artifactId>junit-jupiter-engine</artifactId>
200-
<version>5.7.1</version>
200+
<version>5.7.2</version>
201201
<scope>test</scope>
202202
</dependency>
203203
<dependency>
@@ -221,13 +221,13 @@
221221
<dependency>
222222
<groupId>org.mockito</groupId>
223223
<artifactId>mockito-core</artifactId>
224-
<version>3.8.0</version>
224+
<version>3.12.4</version>
225225
<scope>test</scope>
226226
</dependency>
227227
<dependency>
228228
<groupId>org.mockito</groupId>
229229
<artifactId>mockito-junit-jupiter</artifactId>
230-
<version>3.8.0</version>
230+
<version>3.12.4</version>
231231
<scope>test</scope>
232232
</dependency>
233233
<dependency>
@@ -240,19 +240,19 @@
240240
<dependency>
241241
<groupId>org.postgresql</groupId>
242242
<artifactId>postgresql</artifactId>
243-
<version>42.2.19</version>
243+
<version>42.2.23</version>
244244
<scope>test</scope>
245245
</dependency>
246246
<dependency>
247247
<groupId>mysql</groupId>
248248
<artifactId>mysql-connector-java</artifactId>
249-
<version>8.0.23</version>
249+
<version>8.0.26</version>
250250
<scope>test</scope>
251251
</dependency>
252252
<dependency>
253253
<groupId>org.assertj</groupId>
254254
<artifactId>assertj-core</artifactId>
255-
<version>3.19.0</version>
255+
<version>3.20.2</version>
256256
<scope>test</scope>
257257
</dependency>
258258
<dependency>
@@ -264,26 +264,26 @@
264264
<dependency>
265265
<groupId>org.testcontainers</groupId>
266266
<artifactId>junit-jupiter</artifactId>
267-
<version>1.15.2</version>
267+
<version>1.16.0</version>
268268
<scope>test</scope>
269269
</dependency>
270270
<dependency>
271271
<groupId>org.testcontainers</groupId>
272272
<artifactId>postgresql</artifactId>
273-
<version>1.15.2</version>
273+
<version>1.16.0</version>
274274
<scope>test</scope>
275275
</dependency>
276276
<dependency>
277277
<groupId>org.testcontainers</groupId>
278278
<artifactId>mysql</artifactId>
279-
<version>1.15.2</version>
279+
<version>1.16.0</version>
280280
<scope>test</scope>
281281
</dependency>
282282
<!-- For javadoc link -->
283283
<dependency>
284284
<groupId>com.microsoft.sqlserver</groupId>
285285
<artifactId>mssql-jdbc</artifactId>
286-
<version>8.4.1.jre8</version>
286+
<version>9.4.0.jre8</version>
287287
<scope>provided</scope>
288288
</dependency>
289289
</dependencies>

src/main/java/org/apache/ibatis/annotations/Arg.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2019 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/AutomapConstructor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/CacheNamespace.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/CacheNamespaceRef.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Case.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2019 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/ConstructorArgs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Delete.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/DeleteProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Flush.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Insert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/InsertProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Lang.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Many.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/MapKey.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Mapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/One.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Options.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Param.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2020 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/apache/ibatis/annotations/Property.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2009-2019 the original author or authors.
1+
/*
2+
* Copyright 2009-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)