Skip to content

Commit

Permalink
Feat [#10] 도메인 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed May 18, 2024
1 parent 24251b4 commit 47f40d3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jumpit/src/main/java/org/sopt/jumpit/resume/domain/Resume.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.sopt.jumpit.resume.domain;

import jakarta.persistence.*;
import lombok.Builder;
import org.sopt.jumpit.resume.dto.ResumeCreateRequest;
import org.sopt.jumpit.user.domain.User;

import java.time.LocalDateTime;
Expand Down Expand Up @@ -28,4 +30,17 @@ public class Resume {
@Column(name = "createdAt")
private LocalDateTime createdAt;

@Builder
private Resume(User owner, String title) {
this.owner = owner;
this.title = title;
this.isPrivate = false;
}

public static Resume create(User owner, String title) {
return Resume.builder()
.title(title)
.owner(owner)
.build();
}
}

0 comments on commit 47f40d3

Please sign in to comment.