Skip to content

Commit 3a7b571

Browse files
authored
Merge pull request #506 from jeffgbutler/update-parent
Update parent
2 parents 9c47ec0 + bf17901 commit 3a7b571

File tree

6 files changed

+53
-546
lines changed

6 files changed

+53
-546
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,3 @@ updates:
2525
schedule:
2626
interval: daily
2727
open-pull-requests-limit: 10
28-
ignore:
29-
- dependency-name: org.hsqldb:hsqldb
30-
versions:
31-
- ">= 2.6.0"

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-latest]
27-
java: [8, 11, 17, 18, 19-ea]
27+
java: [11, 17, 18, 19-ea]
2828
distribution: ['zulu']
2929
fail-fast: false
3030
max-parallel: 5

.github/workflows/coveralls.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up JDK
2828
uses: actions/setup-java@v3
2929
with:
30-
java-version: 8
30+
java-version: 11
3131
distribution: zulu
3232
- name: Report Coverage to Coveralls for Pull Requests
3333
if: github.event_name == 'pull_request'

pom.xml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>org.mybatis</groupId>
2222
<artifactId>mybatis-parent</artifactId>
23-
<version>34</version>
23+
<version>35</version>
2424
</parent>
2525
<groupId>org.mybatis.dynamic-sql</groupId>
2626
<artifactId>mybatis-dynamic-sql</artifactId>
@@ -52,9 +52,8 @@
5252
</distributionManagement>
5353

5454
<properties>
55-
<java.version>1.8</java.version>
56-
<maven.compiler.source>${java.version}</maven.compiler.source>
57-
<maven.compiler.target>${java.version}</maven.compiler.target>
55+
<java.test.version>11</java.test.version>
56+
<java.test.release.version>11</java.test.release.version>
5857
<junit.jupiter.version>5.9.0</junit.jupiter.version>
5958
<junit.platform.version>1.9.0</junit.platform.version>
6059
<spring.batch.version>4.3.6</spring.batch.version>
@@ -79,6 +78,18 @@
7978

8079
<build>
8180
<plugins>
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-enforcer-plugin</artifactId>
84+
<configuration>
85+
<rules>
86+
<enforceBytecodeVersion>
87+
<maxJdkVersion>${java.version}</maxJdkVersion>
88+
<ignoredScopes>test</ignoredScopes>
89+
</enforceBytecodeVersion>
90+
</rules>
91+
</configuration>
92+
</plugin>
8293
<plugin>
8394
<groupId>org.jetbrains.kotlin</groupId>
8495
<artifactId>kotlin-maven-plugin</artifactId>
@@ -171,9 +182,17 @@
171182
<plugin>
172183
<groupId>org.eluder.coveralls</groupId>
173184
<artifactId>coveralls-maven-plugin</artifactId>
185+
<version>4.3.0</version>
174186
<configuration>
175187
<sourceDirectories>src/main/java,src/main/kotlin</sourceDirectories>
176188
</configuration>
189+
<dependencies>
190+
<dependency>
191+
<groupId>javax.xml.bind</groupId>
192+
<artifactId>jaxb-api</artifactId>
193+
<version>2.3.1</version>
194+
</dependency>
195+
</dependencies>
177196
</plugin>
178197
<plugin>
179198
<groupId>com.mycila</groupId>
@@ -275,7 +294,7 @@
275294
<dependency>
276295
<groupId>org.hsqldb</groupId>
277296
<artifactId>hsqldb</artifactId>
278-
<version>2.5.2</version>
297+
<version>2.7.0</version>
279298
<scope>test</scope>
280299
</dependency>
281300
<dependency>

src/test/java/examples/joins/JoinMapperTest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -680,36 +680,36 @@ void testFullJoin() {
680680
SelectStatementProvider selectStatement = select(orderLine.orderId, orderLine.quantity, orderLine.itemId.as("ol_itemid"), itemMaster.itemId.as("im_itemid"), itemMaster.description)
681681
.from(itemMaster, "im")
682682
.fullJoin(orderLine, "ol").on(itemMaster.itemId, equalTo(orderLine.itemId))
683-
.orderBy(sortColumn("im_itemid"))
683+
.orderBy(orderLine.orderId, sortColumn("im_itemid"))
684684
.build()
685685
.render(RenderingStrategies.MYBATIS3);
686686

687687
String expectedStatement = "select ol.order_id, ol.quantity, ol.item_id as ol_itemid, im.item_id as im_itemid, im.description"
688688
+ " from ItemMaster im full join OrderLine ol on im.item_id = ol.item_id"
689-
+ " order by im_itemid";
689+
+ " order by order_id, im_itemid";
690690
assertThat(selectStatement.getSelectStatement()).isEqualTo(expectedStatement);
691691

692692
List<Map<String, Object>> rows = mapper.selectManyMappedRows(selectStatement);
693693

694694
assertThat(rows).hasSize(6);
695695
Map<String, Object> row = rows.get(0);
696-
assertThat(row).containsEntry("ORDER_ID", 2);
697-
assertThat(row).containsEntry("QUANTITY", 6);
698-
assertThat(row).containsEntry("OL_ITEMID", 66);
699-
assertThat(row).doesNotContainKey("DESCRIPTION");
700-
assertThat(row).doesNotContainKey("IM_ITEMID");
696+
assertThat(row).doesNotContainKey("ORDER_ID");
697+
assertThat(row).doesNotContainKey("QUANTITY");
698+
assertThat(row).containsEntry("DESCRIPTION", "Catcher Glove");
699+
assertThat(row).containsEntry("IM_ITEMID", 55);
701700

702-
row = rows.get(3);
701+
row = rows.get(2);
703702
assertThat(row).containsEntry("ORDER_ID", 1);
704703
assertThat(row).containsEntry("QUANTITY", 1);
705704
assertThat(row).containsEntry("DESCRIPTION", "First Base Glove");
706705
assertThat(row).containsEntry("IM_ITEMID", 33);
707706

708-
row = rows.get(5);
709-
assertThat(row).doesNotContainKey("ORDER_ID");
710-
assertThat(row).doesNotContainKey("QUANTITY");
711-
assertThat(row).containsEntry("DESCRIPTION", "Catcher Glove");
712-
assertThat(row).containsEntry("IM_ITEMID", 55);
707+
row = rows.get(3);
708+
assertThat(row).containsEntry("ORDER_ID", 2);
709+
assertThat(row).containsEntry("QUANTITY", 6);
710+
assertThat(row).containsEntry("OL_ITEMID", 66);
711+
assertThat(row).doesNotContainKey("DESCRIPTION");
712+
assertThat(row).doesNotContainKey("IM_ITEMID");
713713
}
714714
}
715715

0 commit comments

Comments
 (0)