Skip to content

Commit

Permalink
#87 fix: Post 대체키 수정
Browse files Browse the repository at this point in the history
id -> Long 타입
token -> String 타입
  • Loading branch information
rivkode committed Jun 10, 2024
1 parent c2a793c commit 2f68349
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/seoultech/synergybe/domain/post/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
public class Post extends BaseTime {
@Id
@Column(name = "post_id")
private String id;
private Long id;

// @Column(name = "post_sequence")
// @GeneratedValue(strategy = GenerationType.IDENTITY)
// private Long postSequence;
@Column(name = "post_token")
private String postToken;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
Expand Down Expand Up @@ -69,8 +68,9 @@ public class Post extends BaseTime {
private IsDeleted isDeleted = new IsDeleted(IS_DELETED_DEFAULT);

@Builder
public Post(String id, User user, String title, String content, String thumbnailImageId) {
public Post(Long id, String postToken, User user, String title, String content, String thumbnailImageId) {
this.id = id;
this.postToken = postToken;
this.user = user;
this.title = new PostTitle(title);
this.content = new PostContent(content);
Expand Down

0 comments on commit 2f68349

Please sign in to comment.