File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/apache/ibatis Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2009-2016 the original author or authors.
2
+ * Copyright 2009-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ public enum FlushCachePolicy {
58
58
59
59
boolean useGeneratedKeys () default false ;
60
60
61
- String keyProperty () default "id " ;
61
+ String keyProperty () default "" ;
62
62
63
63
String keyColumn () default "" ;
64
64
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ void parseStatement(Method method) {
303
303
boolean useCache = isSelect ;
304
304
305
305
KeyGenerator keyGenerator ;
306
- String keyProperty = "id" ;
306
+ String keyProperty = null ;
307
307
String keyColumn = null ;
308
308
if (SqlCommandType .INSERT .equals (sqlCommandType ) || SqlCommandType .UPDATE .equals (sqlCommandType )) {
309
309
// first check for SelectKey annotation - that overrides everything else
You can’t perform that action at this time.
0 commit comments