DATAJDBC-264 - Polishing.
Added a test. Added an author tag. Minor formatting. Original pull request: #88.
This commit is contained in:
@@ -39,6 +39,7 @@ import org.springframework.util.Assert;
|
||||
* Generates SQL statements to be used by {@link SimpleJdbcRepository}
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @author Yoichi Imai
|
||||
*/
|
||||
class SqlGenerator {
|
||||
|
||||
@@ -260,6 +261,7 @@ class SqlGenerator {
|
||||
columnNamesForInsert.addAll(additionalColumns);
|
||||
|
||||
String tableColumns = String.join(", ", columnNamesForInsert);
|
||||
|
||||
String parameterNames = columnNamesForInsert.stream()//
|
||||
.map(n -> String.format(":%s", n))//
|
||||
.collect(Collectors.joining(", "));
|
||||
|
||||
Reference in New Issue
Block a user