/**
  * 펫 정보 수정시 펫 리스트에서 선택된 petName과 session의 petOwnerNo를 이용하여 펫 정보를 반환
  *
  * @param povo
  * @author 강신후, 장형원
  */
 @Override
 public PetOwnerVO findPetByPetName(PetOwnerVO povo) {
   HashMap<String, Object> map = new HashMap<String, Object>();
   System.out.println(povo);
   map.put("petOwnerNo", povo.getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       map.put("petVO", povo.getPetVO().get(i));
     }
   }
   return petOwnerDAO.findPetByPetName(map);
 }
 @Override
 public String checkPetNameAjax(PetOwnerVO povo) {
   HashMap<String, Object> map = new HashMap<String, Object>();
   map.put("petOwnerNo", povo.getPetOwnerNo());
   map.put("petVO", povo.getPetVO().get(0));
   System.out.println(petOwnerDAO.findPetByPetName(map));
   if (petOwnerDAO.findPetByPetName(map) == null) {
     return "ok";
   } else {
     return "fail";
   }
 }
 /**
  * 신규 보호자 회원가입
  *
  * @param povo
  * @author 강신후, 장형원
  */
 @Transactional
 @Override
 public void registerPetOwner(PetOwnerVO povo) throws Exception {
   petOwnerDAO.registerPetOwner(povo);
   HashMap<String, Object> pom = new HashMap<String, Object>();
   pom.put("petOwnerNo", povo.getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       pom.put("petVO", povo.getPetVO().get(i));
       petOwnerDAO.registerPet(pom);
     }
   }
 }
 /**
  * 펫 등록
  *
  * @param povo
  * @author 강신후, 장형원
  */
 @Transactional
 @Override
 public void registerPet(PetOwnerVO povo) throws Exception {
   HashMap<String, Object> map = new HashMap<String, Object>();
   System.out.println(povo);
   map.put("petOwnerNo", povo.getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       map.put("petVO", povo.getPetVO().get(i));
       petOwnerDAO.registerPet(map);
     }
   }
 }