File tree 2 files changed +4
-1
lines changed
main-orm/src/main/java/gt/app/domain
main-webapp/src/test/resources
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3
3
import jakarta .persistence .Entity ;
4
4
import jakarta .persistence .EnumType ;
5
5
import jakarta .persistence .Enumerated ;
6
+ import jakarta .persistence .JoinColumn ;
6
7
import lombok .Data ;
7
8
8
9
import java .util .Objects ;
@@ -15,8 +16,10 @@ public class Comment extends BaseAuditingEntity {
15
16
@ Enumerated (EnumType .STRING )
16
17
private CommentStatus status = CommentStatus .AWAITING_APPROVAL ;
17
18
19
+ @ JoinColumn (nullable = false )
18
20
private Long articleId ;
19
21
22
+ @ JoinColumn (nullable = true )
20
23
private Long parentCommentId ;
21
24
22
25
public Comment () {
Original file line number Diff line number Diff line change 9
9
datasource :
10
10
url : jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=MYSQL
11
11
jpa :
12
- show-sql : true
12
+ show-sql : false
13
13
open-in-view : false
14
14
hibernate :
15
15
ddl-auto : none # we use liquibase
You can’t perform that action at this time.
0 commit comments