Skip to content

Commit

Permalink
#41 [Fix] Domain 오류 수정, ErrorCode 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 26, 2022
1 parent bfe30eb commit 4048a8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/mpnp/baechelin/exception/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public enum ErrorCode {
WRONG_INPUT(400, "E_WRI400", "입력 값을 확인해주세요."),
API_LOAD_FAILURE(500, "E-ALF500", "API 로딩에 실패하였습니다."),
API_NO_RESULT(500, "E-ANR500", "API 결과가 존재하지 않습니다."),
NULL_POINTER_EXCEPTION(500, "E-NPE500", "빈 값이 들어올 수 없습니다.");
NULL_POINTER_EXCEPTION(500, "E-NPE500", "빈 값이 들어올 수 없습니다."),
IMAGE_PROCESS_FAIL(500,"E-IPF500","이미지 오류 발생");

private final int status;
private final String code;
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/com/mpnp/baechelin/store/domain/StoreImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ public class StoreImage extends TimeStamped {
@JoinColumn(name = "STORE_ID", nullable = false)
private Store store;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "REVIEW_ID")
private Review review;

public void setReview(Review review) {
this.review = review;
}


// 값이 많지 않아 builder 생략
public StoreImage(String storeImageUrl) {
this.storeImageUrl = storeImageUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.mpnp.baechelin.store.repository;

import com.mpnp.baechelin.store.domain.StoreImage;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StoreImgRepository extends JpaRepository<StoreImage, Integer> {
}

0 comments on commit 4048a8a

Please sign in to comment.