Start building against Spring Framework 5.3.0 snapshots
See gh-21929
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,8 +48,7 @@ public class ExampleRepository {
|
||||
}
|
||||
|
||||
public ExampleEntity findById(int id) {
|
||||
return this.jdbcTemplate.queryForObject("select id, name from example where id =?", new Object[] { id },
|
||||
ROW_MAPPER);
|
||||
return this.jdbcTemplate.queryForObject("select id, name from example where id =?", ROW_MAPPER, id);
|
||||
}
|
||||
|
||||
public Collection<ExampleEntity> findAll() {
|
||||
|
||||
@@ -73,7 +73,7 @@ class DataJpaTestIntegrationTests {
|
||||
Long id = this.entities.persistAndGetId(new ExampleEntity("spring", "123"), Long.class);
|
||||
assertThat(id).isNotNull();
|
||||
String reference = this.jdbcTemplate.queryForObject("SELECT REFERENCE FROM EXAMPLE_ENTITY WHERE ID = ?",
|
||||
new Object[] { id }, String.class);
|
||||
String.class, id);
|
||||
assertThat(reference).isEqualTo("123");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user