Skip to content

Commit

Permalink
#283 [fix] Onboarding 엔티티에서 birthday 데이터 타입 String으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyejungg committed Dec 25, 2022
1 parent 2c585d4 commit 696125f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/hous/server/domain/user/Onboarding.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package hous.server.domain.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import hous.server.domain.badge.Acquire;
import hous.server.domain.badge.Represent;
import hous.server.domain.common.AuditingTimeEntity;
Expand All @@ -11,7 +10,6 @@
import lombok.*;

import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

Expand All @@ -34,8 +32,7 @@ public class Onboarding extends AuditingTimeEntity implements Comparable<Onboard
private String nickname;

@Column(nullable = false)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Seoul")
private LocalDate birthday;
private String birthday;

@Column(length = 100)
private String introduction;
Expand Down Expand Up @@ -69,7 +66,7 @@ public class Onboarding extends AuditingTimeEntity implements Comparable<Onboard
@OneToMany(mappedBy = "onboarding", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)
private final List<Notification> notifications = new ArrayList<>();

public static Onboarding newInstance(User user, Personality personality, String nickname, LocalDate birthday, boolean isPublic) {
public static Onboarding newInstance(User user, Personality personality, String nickname, String birthday, boolean isPublic) {
return Onboarding.builder()
.user(user)
.personality(personality)
Expand Down

0 comments on commit 696125f

Please sign in to comment.