-
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.
Merge pull request #52 from AR-TTUBEOG/chore/37
[Chore] Benefit-Game 관계 변경
- Loading branch information
Showing
31 changed files
with
306 additions
and
377 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
2 changes: 1 addition & 1 deletion
2
src/main/java/com/ttubeog/domain/benefit/domain/BenefitType.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.ttubeog.domain.benefit.domain; | ||
|
||
public enum BenefitType { | ||
sale, plus, gift | ||
SALE, PLUS, GIFT | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/ttubeog/domain/benefit/domain/repository/BenefitRepository.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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package com.ttubeog.domain.benefit.domain.repository; | ||
|
||
import com.ttubeog.domain.benefit.domain.Benefit; | ||
import com.ttubeog.domain.game.domain.Game; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface BenefitRepository extends JpaRepository<Benefit, Long> { | ||
|
||
Optional<Benefit> findByGame(Game game); | ||
|
||
List<Benefit> findAllByGame(Game game); | ||
} |
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
22 changes: 0 additions & 22 deletions
22
src/main/java/com/ttubeog/domain/benefit/dto/request/CreateBenefitReq.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/com/ttubeog/domain/benefit/dto/request/UpdateBenefitReq.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/main/java/com/ttubeog/domain/benefit/dto/response/CreateBenefitRes.java
This file was deleted.
Oops, something went wrong.
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
32 changes: 0 additions & 32 deletions
32
src/main/java/com/ttubeog/domain/benefit/dto/response/UpdateBenefitRes.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.