mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
Remove explicit unboxing
This commit is contained in:
parent
6f6fa64dd7
commit
71f2424542
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
|||
|
||||
public void loadPetsAndVisits(final Owner owner) {
|
||||
Map<String, Object> params = new HashMap<String, Object>();
|
||||
params.put("id", owner.getId().intValue());
|
||||
params.put("id", owner.getId());
|
||||
final List<JdbcPet> pets = this.namedParameterJdbcTemplate.query(
|
||||
"SELECT pets.id, name, birth_date, type_id, owner_id, visits.id, visit_date, description, pet_id FROM pets LEFT OUTER JOIN visits ON pets.id = pet_id WHERE owner_id=:id",
|
||||
params,
|
||||
|
|
Loading…
Reference in a new issue