-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Notice 도메인 에러 적용 * prune: 불필요한 도메인 클래스 제거 * fix: CreatorId JoinColumn 제거 * feat: Image 생성자 Creator 추가 * feat: LostItem Creator 생성자에 추가 * feat: Party 생성자 CreatorId 추가 * feat: Report 생성자 CreatorId 추가 * feat: Review 생성자 CreatorId 추가 * feat: AuditorAware 제거
- Loading branch information
1 parent
f848d71
commit 0515233
Showing
37 changed files
with
136 additions
and
308 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
domain/src/main/java/org/cmc/curtaincall/domain/core/BaseCreatedByEntity.java
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
domain/src/main/java/org/cmc/curtaincall/domain/core/BaseEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package org.cmc.curtaincall.domain.core; | ||
|
||
import jakarta.persistence.*; | ||
import jakarta.persistence.Embedded; | ||
import jakarta.persistence.MappedSuperclass; | ||
import lombok.Getter; | ||
import org.springframework.data.annotation.CreatedBy; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
@Getter | ||
@MappedSuperclass | ||
@EntityListeners(AuditingEntityListener.class) | ||
public abstract class BaseEntity extends BaseTimeEntity { | ||
|
||
@CreatedBy | ||
@JoinColumn(name = "created_by", updatable = false, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) | ||
private CreatorId createdBy; | ||
@Embedded | ||
protected CreatorId createdBy; | ||
} |
18 changes: 0 additions & 18 deletions
18
domain/src/main/java/org/cmc/curtaincall/domain/core/DomainErrorCode.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
domain/src/main/java/org/cmc/curtaincall/domain/core/DomainException.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
domain/src/main/java/org/cmc/curtaincall/domain/notice/exception/NoticeErrorCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.cmc.curtaincall.domain.notice.exception; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import org.cmc.curtaincall.domain.core.ErrorCodeType; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum NoticeErrorCode implements ErrorCodeType { | ||
|
||
NOT_FOUND("NOTICE-001", "존재하지 않는 공지입니다.", 404), | ||
; | ||
|
||
private final String code; | ||
|
||
private final String message; | ||
|
||
private final int status; | ||
} |
11 changes: 11 additions & 0 deletions
11
...in/src/main/java/org/cmc/curtaincall/domain/notice/exception/NoticeNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.cmc.curtaincall.domain.notice.exception; | ||
|
||
import org.cmc.curtaincall.domain.core.AbstractDomainException; | ||
import org.cmc.curtaincall.domain.notice.NoticeId; | ||
|
||
public class NoticeNotFoundException extends AbstractDomainException { | ||
|
||
public NoticeNotFoundException(final NoticeId noticeId) { | ||
super(NoticeErrorCode.NOT_FOUND, "NoticeId=" + noticeId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.