Skip to content

Commit

Permalink
commit first Post entity version
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpcsywm committed Jul 20, 2023
1 parent ca83bec commit 977d3a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/questionentities/Post.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
package questionentities;

import java.time.LocalDate;

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


public Post(int questionId, LocalDate createAt, String postText){
this.questionId = questionId;
this.createAt = createAt;
this.postText = postText;
}

public int getQuestionId() {
return questionId;
}

public LocalDate getCreateAt() {
return createAt;
}

public String getPostText() {
return postText;
}
}

0 comments on commit 977d3a8

Please sign in to comment.