コード例 #1
0
 @Override
 public Club findClub(int clubNo) {
   //
   Club club = clubDao.readClub(clubNo);
   club.setKingManager(memberDao.readClubKingManager(clubNo));
   club.setManager(memberDao.readAllClubManagers(clubNo));
   club.setMember(memberDao.readAllClubMembers(clubNo));
   return club;
 }
コード例 #2
0
 @Override
 public List<ClubManager> findAllClubManager(int clubNo) {
   //
   Club club = clubDao.readClub(clubNo);
   if (club == null) {
     throw NamooClubExceptionFactory.createRuntime("클럽이 존재하지 않습니다.");
   }
   return memberDao.readAllClubManagers(clubNo);
 }