mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
simplifying access to Integer
This commit is contained in:
parent
c4dbb1f648
commit
024811d252
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
||||||
ParameterizedBeanPropertyRowMapper.newInstance(Owner.class)
|
ParameterizedBeanPropertyRowMapper.newInstance(Owner.class)
|
||||||
);
|
);
|
||||||
} catch (EmptyResultDataAccessException ex) {
|
} catch (EmptyResultDataAccessException ex) {
|
||||||
throw new ObjectRetrievalFailureException(Owner.class, new Integer(id));
|
throw new ObjectRetrievalFailureException(Owner.class, id);
|
||||||
}
|
}
|
||||||
loadPetsAndVisits(owner);
|
loadPetsAndVisits(owner);
|
||||||
return owner;
|
return owner;
|
||||||
|
|
Loading…
Reference in a new issue