Skip to content

Commit

Permalink
[FIX]#7 Post Entity, Post DTO 만료일(dueDate) 데이터타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
DryRains committed Aug 30, 2023
1 parent 980ec90 commit 12c0085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import jakarta.persistence.*;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.*;

Expand Down Expand Up @@ -39,7 +40,7 @@ public class Post extends BaseEntity {
private int compensation_applicant;

@Column
private LocalDateTime dueDate;
private LocalDate dueDate;

@Column
private int heart;
Expand All @@ -64,7 +65,7 @@ public class Post extends BaseEntity {
private Set<Field> fields;

@Builder
public Post(Long id, User user, String title, String company_photo_url, int compensation_recommender, int compensation_applicant, LocalDateTime dueDate, int heart, String content, String working_address, LocalDateTime created, LocalDateTime updated, String status) {
public Post(Long id, User user, String title, String company_photo_url, int compensation_recommender, int compensation_applicant, LocalDate dueDate, int heart, String content, String working_address, LocalDateTime created, LocalDateTime updated, String status) {
this.id = id;
this.user = user;
this.title = title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;
Expand All @@ -24,7 +25,7 @@ public class PostDTO {
@Min(0)
private int compensation_applicant = 0;

private LocalDateTime dueDate;
private LocalDate dueDate;

@Min(0)
private int heart = 0;
Expand Down

0 comments on commit 12c0085

Please sign in to comment.