Improving/fixing comments

This commit is contained in:
michaelisvy 2015-04-14 09:27:41 +08:00
parent aeec7104ba
commit 38a5b28e29
2 changed files with 2 additions and 1 deletions

View file

@ -122,6 +122,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
);
for (JdbcPet pet : pets) {
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()));
List<Visit> visits = this.visitRepository.findByPetId(pet.getId());
for (Visit visit : visits) {

View file

@ -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
* ClinicService.
* PetRepository.
*
* @author Juergen Hoeller
*/