-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4be5842
commit 07fa424
Showing
7 changed files
with
68 additions
and
24 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
8 changes: 0 additions & 8 deletions
8
src/main/java/com/groom/orbit/resume/app/dto/CreateResumeRequestDto.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/main/java/com/groom/orbit/resume/app/dto/ResumeRequestDto.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,22 @@ | ||
package com.groom.orbit.resume.app.dto; | ||
|
||
import java.util.Date; | ||
|
||
import com.groom.orbit.member.dao.jpa.entity.Member; | ||
import com.groom.orbit.resume.dao.entity.Resume; | ||
import com.groom.orbit.resume.dao.entity.ResumeCategory; | ||
|
||
public record ResumeRequestDto( | ||
ResumeCategory resumeCategory, String title, String content, Date startDate, Date endDate) { | ||
|
||
public Resume toResume(Member member) { | ||
return Resume.builder() | ||
.resumeCategory(this.resumeCategory) | ||
.title(this.title) | ||
.content(this.content) | ||
.startDate(this.startDate) | ||
.endDate(this.endDate) | ||
.member(member) | ||
.build(); | ||
} | ||
} |
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: 6 additions & 1 deletion
7
src/main/java/com/groom/orbit/resume/dao/ResumeRepository.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,7 +1,12 @@ | ||
package com.groom.orbit.resume.dao; | ||
|
||
import java.util.Optional; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.groom.orbit.resume.dao.entity.Resume; | ||
|
||
public interface ResumeRepository extends JpaRepository<Resume, Long> {} | ||
public interface ResumeRepository extends JpaRepository<Resume, Long> { | ||
|
||
Optional<Resume> findById(Long resumeId); | ||
} |
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