Skip to content

Commit bcc9d27

Browse files
committed
Consistent Method Names
1 parent 50a301b commit bcc9d27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/kotlin/examples/kotlin/mybatis3/canonical/PersonMapperExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fun PersonMapper.insert(record: PersonRecord) =
5656
map(addressId).toProperty("addressId")
5757
}
5858

59-
fun PersonMapper.insert(completer: GeneralInsertCompleter) =
59+
fun PersonMapper.generalInsert(completer: GeneralInsertCompleter) =
6060
insertInto(this::generalInsert, Person, completer)
6161

6262
fun PersonMapper.insertMultiple(vararg records: PersonRecord) =

src/test/kotlin/examples/kotlin/mybatis3/canonical/PersonMapperTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class PersonMapperTest {
204204
newSession().use { session ->
205205
val mapper = session.getMapper(PersonMapper::class.java)
206206

207-
val rows = mapper.insert {
207+
val rows = mapper.generalInsert {
208208
set(id).toValue(100)
209209
set(firstName).toValue("Joe")
210210
set(lastName).toValue(LastName("Jones"))

0 commit comments

Comments
 (0)