public void loadPetsAndVisits(final Owner owner) {
        final List<JdbcPet> pets = this.jdbcClient.sql("""
            SELECT pets.id, name, birth_date, type_id, owner_id, visits.id as visit_id, visit_date, description, pet_id
            FROM pets LEFT OUTER JOIN visits ON pets.id = pet_id
            WHERE owner_id=:id ORDER BY pet_id
            """)
            .param("id", owner.getId())
            .query(new JdbcPetVisitExtractor());
        Collection<PetType> petTypes = getPetTypes();
        for (JdbcPet pet : pets) {
            pet.setType(EntityUtils.getById(petTypes, PetType.class, pet.getTypeId()));
            owner.addPet(pet);
        }
    }
Loads the {@link Owner} with the supplied <code>id</code>; also loads the {@link Pet Pets} and {@link Visit Visits}
for the corresponding owner, if not already loaded.
src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java