Skip to content

Commit

Permalink
add back reverted code
Browse files Browse the repository at this point in the history
  • Loading branch information
gtiwari333 committed Feb 4, 2024
1 parent effb47f commit 52fdf11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main-app/main-orm/src/main/java/gt/app/domain/Comment.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.JoinColumn;
import lombok.Data;

import java.util.Objects;
Expand All @@ -15,8 +16,10 @@ public class Comment extends BaseAuditingEntity {
@Enumerated(EnumType.STRING)
private CommentStatus status = CommentStatus.AWAITING_APPROVAL;

@JoinColumn(nullable = false)
private Long articleId;

@JoinColumn(nullable = true)
private Long parentCommentId;

public Comment() {
Expand Down
2 changes: 1 addition & 1 deletion main-app/main-webapp/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring:
datasource:
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL
jpa:
show-sql: true
show-sql: false
open-in-view: false
hibernate:
ddl-auto: none # we use liquibase
Expand Down

0 comments on commit 52fdf11

Please sign in to comment.