File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
main-orm/src/main/java/gt/app/domain
main-webapp/src/test/resources Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 33import jakarta .persistence .Entity ;
44import jakarta .persistence .EnumType ;
55import jakarta .persistence .Enumerated ;
6+ import jakarta .persistence .JoinColumn ;
67import lombok .Data ;
78
89import java .util .Objects ;
@@ -15,8 +16,10 @@ public class Comment extends BaseAuditingEntity {
1516 @ Enumerated (EnumType .STRING )
1617 private CommentStatus status = CommentStatus .AWAITING_APPROVAL ;
1718
19+ @ JoinColumn (nullable = false )
1820 private Long articleId ;
1921
22+ @ JoinColumn (nullable = true )
2023 private Long parentCommentId ;
2124
2225 public Comment () {
Original file line number Diff line number Diff line change 99 datasource :
1010 url : jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL
1111 jpa :
12- show-sql : true
12+ show-sql : false
1313 open-in-view : false
1414 hibernate :
1515 ddl-auto : none # we use liquibase
You can’t perform that action at this time.
0 commit comments