Skip to content
Snippets Groups Projects
Commit 71f24245 authored by Antoine Rey's avatar Antoine Rey
Browse files

Remove explicit unboxing

parent 6f6fa64d
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment