Skip to content

Commit 40e054d

Browse files
committed
Add a comment that the example code isn’t ready for production
1 parent 7c2033d commit 40e054d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/main/java/de/codecentric/java8examples/lambdas/SpringJdbcSupportWithLambdas.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class SpringJdbcSupportWithLambdas extends JdbcDaoSupport {
1414

1515
public Person findPersonById(String id) {
1616
return getJdbcTemplate().queryForObject(
17+
// not secured against SQL injections, don't do this in production code!
1718
"SELECT * FROM persons WHERE id = " + id,
1819
new RowMapper<Person>() {
1920
@Override

0 commit comments

Comments
 (0)