Skip to content

Commit a239e58

Browse files
committed
Spelling Error
1 parent 2e867d0 commit a239e58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/mybatis/dynamic/sql/util/mybatis3/MyBatis3SelectListHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static <T> MyBatis3SelectListHelper<T> allRows() {
9696
*
9797
* @return the helper that will select every row in a table in the specified order
9898
*/
99-
static <T> MyBatis3SelectListHelper<T> allRowsOrderdBy(SortSpecification...columns) {
99+
static <T> MyBatis3SelectListHelper<T> allRowsOrderedBy(SortSpecification...columns) {
100100
return h -> h.orderBy(columns);
101101
}
102102
}

src/test/java/examples/simple/PersonMapperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void testSelectAllOrdered() {
100100
PersonMapper mapper = session.getMapper(PersonMapper.class);
101101

102102
List<PersonRecord> rows = mapper
103-
.select(MyBatis3SelectListHelper.allRowsOrderdBy(lastName.descending(), firstName.descending()));
103+
.select(MyBatis3SelectListHelper.allRowsOrderedBy(lastName.descending(), firstName.descending()));
104104

105105
assertThat(rows.size()).isEqualTo(6);
106106
assertThat(rows.get(0).getId()).isEqualTo(5);
@@ -487,7 +487,7 @@ public void testTypeHandledNotLike() {
487487
public void testJoinAllRows() {
488488
try (SqlSession session = sqlSessionFactory.openSession()) {
489489
PersonWithAddressMapper mapper = session.getMapper(PersonWithAddressMapper.class);
490-
List<PersonWithAddress> records = mapper.select(MyBatis3SelectListHelper.allRowsOrderdBy(id));
490+
List<PersonWithAddress> records = mapper.select(MyBatis3SelectListHelper.allRowsOrderedBy(id));
491491

492492
assertThat(records.size()).isEqualTo(6L);
493493
assertThat(records.get(0).getId()).isEqualTo(1);

0 commit comments

Comments
 (0)