Skip to content

Commit 7312745

Browse files
committed
Fix implementation of UserRepository#createFromTuple2, In this case, JdbcGeneratedKey is not need.
1 parent 45f1682 commit 7312745

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mybatis-scala-core/src/test/scala/org/mybatis/scala/infrastructure/UserRepository.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ object UserRepository {
3333
}
3434

3535
val createFromTuple2 = new Insert[(String, String)] {
36-
keyGenerator = JdbcGeneratedKey(null, "id")
3736
def xsql = <xsql>INSERT INTO user(name, email) VALUES({"_1" ?}, {"_2" ?})</xsql>
3837
}
3938

0 commit comments

Comments
 (0)