Skip to content

Commit 4fb784b

Browse files
committed
Better method name
1 parent 386c6ea commit 4fb784b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/org/mybatis/dynamic/sql/SqlBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ static <T> BatchInsertDSL.BatchIntoGatherer<T> insert(Collection<T> records) {
120120
}
121121

122122
@SafeVarargs
123-
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> multiRowInsert(T...records) {
123+
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> insertMultiple(T...records) {
124124
return MultiRowInsertDSL.insert(records);
125125
}
126126

127-
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> multiRowInsert(Collection<T> records) {
127+
static <T> MultiRowInsertDSL.MultiRowIntoGatherer<T> insertMultiple(Collection<T> records) {
128128
return MultiRowInsertDSL.insert(records);
129129
}
130130

src/test/java/examples/generated/always/mybatis/GeneratedAlwaysAnnotatedMapperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void testMultiInsertWithList() {
212212
GeneratedAlwaysAnnotatedMapper mapper = session.getMapper(GeneratedAlwaysAnnotatedMapper.class);
213213
List<GeneratedAlwaysRecord> records = getTestRecords();
214214

215-
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = multiRowInsert(records)
215+
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = insertMultiple(records)
216216
.into(generatedAlways)
217217
.map(id).toProperty("id")
218218
.map(firstName).toProperty("firstName")
@@ -256,7 +256,7 @@ public void testMultiInsertWithArray() {
256256
record2.setFirstName("Jane");
257257
record2.setLastName("Jetson");
258258

259-
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = multiRowInsert(record1, record2)
259+
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = insertMultiple(record1, record2)
260260
.into(generatedAlways)
261261
.map(id).toProperty("id")
262262
.map(firstName).toProperty("firstName")
@@ -286,7 +286,7 @@ public void testMultiInsertWithArrayAndVariousMappings() {
286286
record1.setFirstName("George");
287287
record1.setLastName("Jetson");
288288

289-
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = multiRowInsert(record1)
289+
MultiRowInsertStatementProvider<GeneratedAlwaysRecord> multiRowInsert = insertMultiple(record1)
290290
.into(generatedAlways)
291291
.map(id).toConstant("1000")
292292
.map(firstName).toStringConstant("George")

0 commit comments

Comments
 (0)