Skip to content

Commit

Permalink
commit modify post entity
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpcsywm committed Jul 20, 2023
1 parent 7f71457 commit de5a541
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/questionentities/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

public class Post {
private final int questionId;
private final int postId;
private final LocalDate createAt;
private final String postText;


public Post(int questionId, LocalDate createAt, String postText){
public Post(int questionId, int postId, LocalDate createAt, String postText){
this.questionId = questionId;
this.postId = postId;
this.createAt = createAt;
this.postText = postText;
}
Expand All @@ -18,6 +20,10 @@ public int getQuestionId() {
return questionId;
}

public int getPostId() {
return postId;
}

public LocalDate getCreateAt() {
return createAt;
}
Expand Down

0 comments on commit de5a541

Please sign in to comment.