File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/main/java/clap/server/adapter/outbound/persistense Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public void saveAll(List<Attachment> attachments) {
3838 }
3939
4040 @ Override
41- public List <Attachment > findAllByTaskId (Long taskId ) {
41+ public List <Attachment > findAllByTaskId (final Long taskId ) {
4242 List <AttachmentEntity > attachmentEntities = attachmentRepository .findAllByTask_TaskId (taskId );
4343 return attachmentEntities .stream ()
4444 .map (attachmentPersistenceMapper ::toDomain )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class TaskHistoryEntity extends BaseTimeEntity {
2626 @ Embedded
2727 private TaskModificationInfo taskModificationInfo ;
2828
29- @ ManyToOne (fetch = FetchType .LAZY )
29+ @ OneToOne (fetch = FetchType .LAZY )
3030 @ JoinColumn (name = "comment_id" )
3131 private CommentEntity comment ;
3232}
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ public class TaskModificationInfo {
1414 private TaskEntity task ;
1515
1616 @ Column (name = "modified_field" )
17- private String modifiedField ;
17+ private String modifiedField ; //처리자(requestor) / 요청상태(taskStatus) -> task 상태 변경 혹은 처리 변경시에 taskhistory 테이블도 변경해야함
1818
1919 @ ManyToOne (fetch = FetchType .LAZY )
20- @ JoinColumn (name = "modified_member_id" )
20+ @ JoinColumn (name = "modified_member_id" ) //처리자가 바뀌는 경우
2121 private MemberEntity member ;
2222
2323 @ Column (name = "new_value" )
24- private String newValue ;
24+ private String newValue ; //상태가 바뀌는 경우
2525}
You can’t perform that action at this time.
0 commit comments