-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
소모임 관련 파일 구조 변경 및 정기모임 기능 추가
- Loading branch information
Showing
52 changed files
with
608 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.core.linkup.club.club.entity; | ||
|
||
import com.core.linkup.common.entity.BaseEntity; | ||
import jakarta.persistence.Entity; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Entity(name = "club") | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@SuperBuilder(toBuilder = true) | ||
public class Club extends BaseEntity { | ||
|
||
private Long memberId; | ||
private Boolean clubAccessibility; | ||
private String category; | ||
private Integer recruitCount; | ||
private String title; | ||
private String introduction; | ||
private String detailedIntroduction; | ||
private String clubThumbnail; | ||
private String applicationIntroduction; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/com/core/linkup/club/club/repository/ClubAnswerRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.core.linkup.club.club.repository; | ||
|
||
import com.core.linkup.club.club.entity.ClubAnswer; | ||
import com.core.linkup.club.club.entity.ClubMember; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface ClubAnswerRepository extends JpaRepository<ClubAnswer, Long> { | ||
List<ClubAnswer> findByMemberId(Long memberId); | ||
} |
6 changes: 3 additions & 3 deletions
6
...club/repository/ClubCustomRepository.java → ...club/repository/ClubCustomRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/core/linkup/club/club/repository/ClubMemberRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.core.linkup.club.club.repository; | ||
|
||
import com.core.linkup.club.club.entity.ClubMember; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface ClubMemberRepository extends JpaRepository<ClubMember, Long> { | ||
List<ClubMember> findByMemberId(Long memberId); | ||
|
||
List<ClubMember> findByClubId(Long clubId); | ||
|
||
Optional<ClubMember> findByClubIdAndMemberId(Long clubId, Long memberId); | ||
|
||
Optional<ClubMember> findByMemberIdAndClubId(Long memberId, Long clubId); | ||
} |
Oops, something went wrong.