Skip to content

Commit 3d69cc4

Browse files
committed
CLAP-56 Fix: Attachment와 Comment 매핑 oneToOne으로 변경
1 parent d59fd0a commit 3d69cc4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/clap/server/adapter/outbound/persistense/entity/task/AttachmentEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class AttachmentEntity extends BaseTimeEntity {
2828
@JoinColumn(name = "task_id")
2929
private TaskEntity task;
3030

31-
@ManyToOne(fetch = FetchType.LAZY)
31+
@OneToOne(fetch = FetchType.LAZY)
3232
@JoinColumn(name = "comment_id")
3333
private CommentEntity comment;
3434

src/main/resources/application.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ spring:
1010
application:
1111
name: taskflow
1212

13-
web.resources.add-mappings: false
13+
web.resources.add-mappings: false
14+
1415

1516
server:
1617
port: ${APPLICATION_PORT:8080}

0 commit comments

Comments
 (0)