mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Improving/fixing comments
This commit is contained in:
parent
aeec7104ba
commit
38a5b28e29
2 changed files with 2 additions and 1 deletions
|
@ -122,6 +122,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
||||||
);
|
);
|
||||||
for (JdbcPet pet : pets) {
|
for (JdbcPet pet : pets) {
|
||||||
owner.addPet(pet);
|
owner.addPet(pet);
|
||||||
|
// Pet types have not been loaded at this stage. They are loaded separately
|
||||||
pet.setType(EntityUtils.getById(getPetTypes(), PetType.class, pet.getTypeId()));
|
pet.setType(EntityUtils.getById(getPetTypes(), PetType.class, pet.getTypeId()));
|
||||||
List<Visit> visits = this.visitRepository.findByPetId(pet.getId());
|
List<Visit> visits = this.visitRepository.findByPetId(pet.getId());
|
||||||
for (Visit visit : visits) {
|
for (Visit visit : visits) {
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.springframework.samples.petclinic.model.Pet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subclass of Pet that carries temporary id properties which are only relevant for a JDBC implementation of the
|
* Subclass of Pet that carries temporary id properties which are only relevant for a JDBC implementation of the
|
||||||
* ClinicService.
|
* PetRepository.
|
||||||
*
|
*
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue