Skip to content

Commit dd2ed31

Browse files
authored
Merge pull request mybatis#35 from kazuki43zoo/update-spring-boot-2.7.0
Update spring boot 2.7.0
2 parents ce71d3f + d12815f commit dd2ed31

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
<mybatis-velocity.version>2.1.1</mybatis-velocity.version>
9090
<mybatis-freemarker.version>1.2.3</mybatis-freemarker.version>
9191
<mybatis-dynamic-sql.version>1.4.0</mybatis-dynamic-sql.version>
92-
<spring-boot.version>2.6.7</spring-boot.version>
93-
<spring-native.version>0.11.5</spring-native.version>
92+
<spring-boot.version>2.7.0</spring-boot.version>
93+
<spring-native.version>0.12.0</spring-native.version>
9494
</properties>
9595

9696
<build>

samples/dynamic-sql/src/main/java/org/mybatis/spring/nativex/sample/dynamicsql/CityMapper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ public interface CityMapper
4949
List<City> selectMany(SelectStatementProvider selectStatement);
5050

5151
default void insert(City city) {
52-
MyBatis3Utils.insert(this::insert, city, CityTable.INSTANCE,
53-
c -> c.map(CityTable.INSTANCE.id).toProperty("id").map(CityTable.INSTANCE.name).toProperty("name")
54-
.map(CityTable.INSTANCE.state).toProperty("state").map(CityTable.INSTANCE.country).toProperty("country"));
52+
MyBatis3Utils.insert(this::insert, city, CityTable.INSTANCE, c -> c.map(CityTable.INSTANCE.name).toProperty("name")
53+
.map(CityTable.INSTANCE.state).toProperty("state").map(CityTable.INSTANCE.country).toProperty("country"));
5554
}
5655

5756
default Collection<City> findAll() {

0 commit comments

Comments
 (0)