-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
100 additions
and
241 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
24 changes: 0 additions & 24 deletions
24
spring-code-for-deploy/src/main/java/com/example/seminar/controller/CategoryController.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
40 changes: 0 additions & 40 deletions
40
spring-code-for-deploy/src/main/java/com/example/seminar/domain/Category.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
spring-code-for-deploy/src/main/java/com/example/seminar/domain/CategoryId.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
18 changes: 0 additions & 18 deletions
18
...-for-deploy/src/main/java/com/example/seminar/dto/response/category/CategoryResponse.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...-code-for-deploy/src/main/java/com/example/seminar/dto/response/post/PostGetResponse.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
7 changes: 0 additions & 7 deletions
7
...g-code-for-deploy/src/main/java/com/example/seminar/repository/CategoryJpaRepository.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...ng-code-for-deploy/src/main/java/com/example/seminar/service/category/CategoryFinder.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...g-code-for-deploy/src/main/java/com/example/seminar/service/category/CategoryService.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
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
spring-code-for-deploy/src/main/java/com/example/seminar/service/post/PostRemover.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.example.seminar.service.post; | ||
|
||
import com.example.seminar.domain.Post; | ||
import com.example.seminar.repository.PostJpaRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class PostRemover { | ||
|
||
private final PostJpaRepository postJpaRepository; | ||
|
||
public void remove(final Post post) { | ||
postJpaRepository.delete(post); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
spring-code-for-deploy/src/main/java/com/example/seminar/service/post/PostSaver.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.example.seminar.service.post; | ||
|
||
import com.example.seminar.domain.Post; | ||
import com.example.seminar.repository.PostJpaRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@RequiredArgsConstructor | ||
public class PostSaver { | ||
|
||
private final PostJpaRepository postJpaRepository; | ||
|
||
public Post save(Post post) { | ||
return postJpaRepository.save(post); | ||
} | ||
} |
Oops, something went wrong.