From ab165f3f88bca3689271295d2320acfe11a450fd Mon Sep 17 00:00:00 2001 From: Hoon9901 Date: Wed, 11 Oct 2023 13:32:09 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20Exhibition=20Artwork=20Domain=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 관련 로직 제거 --- .../ExhibitionArtworkController.java | 63 --------------- .../controller/ExhibitionController.java | 2 - .../domain/artwork/entity/Artwork.java | 8 -- .../exhibition/service/ExhibitionService.java | 77 ++----------------- .../dto/ExhibitionArtworkResponseDTO.java | 38 --------- .../dto/ExhibitionArtworksResponseDTO.java | 25 ------ .../entity/ExhibitionArtwork.java | 63 --------------- .../entity/ExhibitionArtworkStatus.java | 25 ------ .../NotFoundExhibitionException.java | 9 --- .../ExhibitionArtworkRepository.java | 15 ---- .../V32__drop_exhibition_artwork_table.sql | 1 + 11 files changed, 6 insertions(+), 320 deletions(-) delete mode 100644 src/main/java/com/example/codebase/controller/ExhibitionArtworkController.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworkResponseDTO.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworksResponseDTO.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtwork.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtworkStatus.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/exception/NotFoundExhibitionException.java delete mode 100644 src/main/java/com/example/codebase/domain/exhibition_artwork/repository/ExhibitionArtworkRepository.java create mode 100644 src/main/resources/db/migration/V32__drop_exhibition_artwork_table.sql diff --git a/src/main/java/com/example/codebase/controller/ExhibitionArtworkController.java b/src/main/java/com/example/codebase/controller/ExhibitionArtworkController.java deleted file mode 100644 index e44195a5..00000000 --- a/src/main/java/com/example/codebase/controller/ExhibitionArtworkController.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.example.codebase.controller; - -import com.example.codebase.domain.exhibition.service.ExhibitionService; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworkResponseDTO; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworksResponseDTO; -import com.example.codebase.util.SecurityUtil; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.*; - - -@RestController -@RequestMapping("/api/exhibitions") -public class ExhibitionArtworkController { - - private final ExhibitionService exhibitionService; - - public ExhibitionArtworkController(ExhibitionService exhibitionService) { - this.exhibitionService = exhibitionService; - } - - @ApiOperation(value = "공모전에 아트워크 제출", notes = "[USER] 사용자가 공모전에 작품을 제출합니다.") - @PreAuthorize("isAuthenticated() and hasAnyRole('ROLE_USER')") - @PostMapping("/{exhibitionId}/artworks/{artworkId}") - public ResponseEntity addArtworkToExhibition(@PathVariable Long exhibitionId, @PathVariable Long artworkId) { - String username = SecurityUtil.getCurrentUsername().get(); - ExhibitionArtworkResponseDTO exhibitionArtworkResponseDTO = exhibitionService.addArtworkToExhibition(exhibitionId, artworkId, username); - return new ResponseEntity(exhibitionArtworkResponseDTO, HttpStatus.CREATED); - } - - @ApiOperation(value = "해당 공모전에 제출한 아트워크 조회", notes = "공모전에 등록된 작품을 조회합니다.") - @GetMapping("/{exhibitionId}/artworks") - public ResponseEntity getExhibitionWithArtworks(@PathVariable Long exhibitionId) { - ExhibitionArtworksResponseDTO exhibitionArtworks = exhibitionService.getArtworkFromExhibition(exhibitionId); - return new ResponseEntity(exhibitionArtworks, HttpStatus.OK); - } - - @ApiOperation(value = "공모전에 제출한 아트워크 상태 수정", notes = "[ADMIN] 공모전에 제출한 작품의 상태를 수정합니다. (submitted, pending, accepted, rejected)") - @PutMapping("/{exhibitionId}/artworks/{artworkId}") - public ResponseEntity updateExhibitionArtwork(@PathVariable Long exhibitionId, - @PathVariable Long artworkId, - @RequestParam String status) { - if (!SecurityUtil.isAdmin()) { - throw new RuntimeException(); - } - - ExhibitionArtworkResponseDTO exhibitionArtworkResponseDTO = exhibitionService.updateStatusExhibitionArtwork(exhibitionId, artworkId, status); - return new ResponseEntity(exhibitionArtworkResponseDTO, HttpStatus.OK); - } - - @ApiOperation(value = "공모전에 제출한 아트워크 삭제", notes = "[USER] 공모전에 제출 작품을 삭제합니다.") - @DeleteMapping("/{exhibitionId}/artworks/{artworkId}") - public ResponseEntity deleteExhibitionArtwork(@PathVariable Long exhibitionId, @PathVariable Long artworkId) { - String username = SecurityUtil.getCurrentUsername().get(); - exhibitionService.deleteExhibitionArtwork(exhibitionId, artworkId, username); - return new ResponseEntity("제출한 아트워크 삭제되었습니다. ", HttpStatus.OK); - } - - -} diff --git a/src/main/java/com/example/codebase/controller/ExhibitionController.java b/src/main/java/com/example/codebase/controller/ExhibitionController.java index fe9f5311..ade8f31a 100644 --- a/src/main/java/com/example/codebase/controller/ExhibitionController.java +++ b/src/main/java/com/example/codebase/controller/ExhibitionController.java @@ -3,8 +3,6 @@ import com.example.codebase.domain.exhibition.dto.CreateExhibitionDTO; import com.example.codebase.domain.exhibition.dto.ResponseExhibitionDTO; import com.example.codebase.domain.exhibition.service.ExhibitionService; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworkResponseDTO; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworksResponseDTO; import com.example.codebase.util.SecurityUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; diff --git a/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java b/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java index 259a040f..5430274e 100644 --- a/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java +++ b/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java @@ -64,10 +64,6 @@ public class Artwork { @JoinColumn(name = "member_id") private Member member; - @Builder.Default - @OneToMany(mappedBy = "artwork", cascade = CascadeType.ALL) - private List exhibitionArtworks = new ArrayList<>(); - @Builder.Default @OneToMany(mappedBy = "artwork", cascade = CascadeType.ALL) private List artworkMedia = new ArrayList<>(); @@ -97,10 +93,6 @@ public void addArtworkMedia(ArtworkMedia artworkMedia) { this.artworkMedia.add(artworkMedia); } - public void addExhibitionArtwork(ExhibitionArtwork exhibitionArtwork) { - this.exhibitionArtworks.add(exhibitionArtwork); - } - public void update(ArtworkUpdateDTO dto) { this.title = dto.getTitle(); if (Optional.ofNullable(dto.getTags()).isPresent()) { diff --git a/src/main/java/com/example/codebase/domain/exhibition/service/ExhibitionService.java b/src/main/java/com/example/codebase/domain/exhibition/service/ExhibitionService.java index 2a515279..727bcd57 100644 --- a/src/main/java/com/example/codebase/domain/exhibition/service/ExhibitionService.java +++ b/src/main/java/com/example/codebase/domain/exhibition/service/ExhibitionService.java @@ -11,16 +11,11 @@ import com.example.codebase.domain.exhibition.entity.Exhibition; import com.example.codebase.domain.exhibition.entity.ExhibitionMedia; import com.example.codebase.domain.exhibition.repository.ExhibitionRepository; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworkResponseDTO; -import com.example.codebase.domain.exhibition_artwork.dto.ExhibitionArtworksResponseDTO; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtwork; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtworkStatus; -import com.example.codebase.domain.exhibition_artwork.exception.NotFoundExhibitionException; -import com.example.codebase.domain.exhibition_artwork.repository.ExhibitionArtworkRepository; import com.example.codebase.domain.member.entity.Member; import com.example.codebase.domain.member.exception.NotFoundMemberException; import com.example.codebase.domain.member.repository.MemberRepository; import com.example.codebase.exception.NotFoundException; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -30,16 +25,13 @@ @Service public class ExhibitionService { private final ExhibitionRepository exhibitionRepository; - - private final ExhibitionArtworkRepository exhibitionArtworkRepository; - private final ArtworkRepository artworkRepository; private final MemberRepository memberRepository; - public ExhibitionService(ExhibitionRepository exhibitionRepository, ExhibitionArtworkRepository exhibitionArtworkRepository, ArtworkRepository artworkRepository, MemberRepository memberRepository) { + @Autowired + public ExhibitionService(ExhibitionRepository exhibitionRepository, ArtworkRepository artworkRepository, MemberRepository memberRepository) { this.exhibitionRepository = exhibitionRepository; - this.exhibitionArtworkRepository = exhibitionArtworkRepository; this.artworkRepository = artworkRepository; this.memberRepository = memberRepository; } @@ -72,7 +64,7 @@ public List getAllExhibition() { public ResponseExhibitionDTO updateExhibition(Long exhibitionId, CreateExhibitionDTO createExhibitionDTO, String username) { Exhibition exhibition = exhibitionRepository.findById(exhibitionId) - .orElseThrow(() -> new NotFoundExhibitionException()); + .orElseThrow(() -> new NotFoundException("전시를 찾을 수 없습니다.")); if (!exhibition.getMember().getUsername().equals(username)) { throw new RuntimeException("공모전의 작성자가 아닙니다."); @@ -86,72 +78,13 @@ public ResponseExhibitionDTO updateExhibition(Long exhibitionId, CreateExhibitio @Transactional public void deleteExhibition(Long exhibitionId, String username) { Exhibition exhibition = exhibitionRepository.findById(exhibitionId) - .orElseThrow(() -> new NotFoundExhibitionException()); + .orElseThrow(() -> new NotFoundException("전시를 찾을 수 없습니다.")); if (!exhibition.getMember().getUsername().equals(username)) { throw new RuntimeException("공모전의 작성자가 아닙니다."); } - // 공모전에 제출된 작품들을 반려처리 - List all = exhibitionArtworkRepository.findAllByExhibitionId(exhibitionId); - all.forEach(exhibitionArtwork -> { - exhibitionArtwork.setExhibitionArtworkStatus(ExhibitionArtworkStatus.rejected); - }); - exhibition.delete(); // 소프트 삭제 } - @Transactional - public ExhibitionArtworkResponseDTO addArtworkToExhibition(Long exhibitionId, Long artworkId, String username) { - Artwork artwork = artworkRepository.findById(artworkId) - .orElseThrow(() -> new NotFoundException("존재하지 않는 작품입니다.")); - - if (!artwork.getMember().getUsername().equals(username)) { - throw new RuntimeException("아트워크의 작성자가 아닙니다."); - } - - Exhibition exhibition = exhibitionRepository.findById(exhibitionId) - .orElseThrow(() -> new NotFoundExhibitionException()); - - ExhibitionArtwork exhibitionArtwork = ExhibitionArtwork.of(exhibition, artwork); - artwork.addExhibitionArtwork(exhibitionArtwork); - - ExhibitionArtwork save = exhibitionArtworkRepository.save(exhibitionArtwork); - - return ExhibitionArtworkResponseDTO.from(save); - } - - public ExhibitionArtworksResponseDTO getArtworkFromExhibition(Long exhibitionId) { - Exhibition exhibition = exhibitionRepository.findById(exhibitionId) - .orElseThrow(() -> new NotFoundExhibitionException()); - - List all = exhibitionArtworkRepository.findAllByExhibitionId(exhibitionId); - List artworkResponseDTOS = all.stream() - .map(ExhibitionArtwork::getArtwork) - .map(ArtworkResponseDTO::from) - .collect(Collectors.toList()); - - return ExhibitionArtworksResponseDTO.from(exhibition, artworkResponseDTOS); - } - - public ExhibitionArtworkResponseDTO updateStatusExhibitionArtwork(Long exhibitionId, Long artworkId, String status) { - ExhibitionArtwork exhibitionArtwork = exhibitionArtworkRepository.findByExhibitionIdAndArtworkId(exhibitionId, artworkId) - .orElseThrow(() -> new NotFoundException("존재하지 않는 공모전 또는 작품입니다.")); - - exhibitionArtwork.updateStatus(status); - - return ExhibitionArtworkResponseDTO.from(exhibitionArtwork); - } - - @Transactional - public void deleteExhibitionArtwork(Long exhibitionId, Long artworkId, String username) { - ExhibitionArtwork exhibitionArtwork = exhibitionArtworkRepository.findByExhibitionIdAndArtworkId(exhibitionId, artworkId) - .orElseThrow(() -> new NotFoundException("존재하지 않는 공모전 또는 작품입니다.")); - - if (!exhibitionArtwork.getArtwork().getMember().getUsername().equals(username)) { - throw new RuntimeException("아트워크의 작성자가 아닙니다."); - } - - exhibitionArtworkRepository.delete(exhibitionArtwork); - } } \ No newline at end of file diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworkResponseDTO.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworkResponseDTO.java deleted file mode 100644 index 741fa420..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworkResponseDTO.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.dto; - -import com.example.codebase.domain.artwork.dto.ArtworkResponseDTO; -import com.example.codebase.domain.exhibition.dto.ResponseExhibitionDTO; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtwork; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtworkStatus; -import com.fasterxml.jackson.annotation.JsonFormat; -import lombok.Getter; -import lombok.Setter; - -import java.time.LocalDateTime; - -@Setter -@Getter -public class ExhibitionArtworkResponseDTO { - private Long id; - private ResponseExhibitionDTO exhibition; - - private ArtworkResponseDTO artwork; - - private ExhibitionArtworkStatus status; - - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss") - private LocalDateTime createdTime; - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss") - private LocalDateTime updatedTime; - - public static ExhibitionArtworkResponseDTO from(ExhibitionArtwork save) { - ExhibitionArtworkResponseDTO dto = new ExhibitionArtworkResponseDTO(); - dto.setId(save.getId()); - dto.setExhibition(ResponseExhibitionDTO.from(save.getExhibition())); - dto.setArtwork(ArtworkResponseDTO.from(save.getArtwork())); - dto.setStatus(save.getStatus()); - dto.setCreatedTime(save.getCreatedTime()); - dto.setUpdatedTime(save.getUpdatedTime()); - return dto; - } -} diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworksResponseDTO.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworksResponseDTO.java deleted file mode 100644 index 213503e6..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/dto/ExhibitionArtworksResponseDTO.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.dto; - -import com.example.codebase.domain.artwork.dto.ArtworkResponseDTO; -import com.example.codebase.domain.exhibition.dto.ResponseExhibitionDTO; -import com.example.codebase.domain.exhibition.entity.Exhibition; -import lombok.Getter; -import lombok.Setter; - -import java.util.List; - -@Getter -@Setter -public class ExhibitionArtworksResponseDTO { - - private ResponseExhibitionDTO exhibition; - - private List artworks; - - public static ExhibitionArtworksResponseDTO from(Exhibition exhibition, List artworks) { - ExhibitionArtworksResponseDTO dto = new ExhibitionArtworksResponseDTO(); - dto.setExhibition(ResponseExhibitionDTO.from(exhibition)); - dto.setArtworks(artworks); - return dto; - } -} diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtwork.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtwork.java deleted file mode 100644 index 3c3181c9..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtwork.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.entity; - -import com.example.codebase.domain.artwork.entity.Artwork; -import com.example.codebase.domain.exhibition.entity.Exhibition; -import com.example.codebase.domain.member.entity.Member; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Getter; -import lombok.NoArgsConstructor; - -import javax.persistence.*; -import java.time.LocalDate; -import java.time.LocalDateTime; - -@Entity -@Table(name = "exhibition_artwork") -@Getter -@Builder -@AllArgsConstructor -@NoArgsConstructor -public class ExhibitionArtwork { - - @Id - @Column(name = "exhibition_artwork_id") - @GeneratedValue(strategy = GenerationType.IDENTITY) - private Long id; - - @OneToOne - @JoinColumn(name = "exhibition_id") - private Exhibition exhibition; - - @ManyToOne - @JoinColumn(name = "artwork_id") - private Artwork artwork; - - @Enumerated(EnumType.STRING) - @Column(name = "status", nullable = false) - private ExhibitionArtworkStatus status; - - @Column(name = "created_time") - private LocalDateTime createdTime; - - @Column(name = "updated_time") - private LocalDateTime updatedTime; - - public static ExhibitionArtwork of(Exhibition exhibition, Artwork artwork) { - return ExhibitionArtwork.builder() - .exhibition(exhibition) - .artwork(artwork) - .status(ExhibitionArtworkStatus.submitted) - .createdTime(LocalDateTime.now()) - .build(); - } - - public void setExhibitionArtworkStatus(ExhibitionArtworkStatus status) { - this.status = status; - } - - public void updateStatus(String status) { - this.status = ExhibitionArtworkStatus.create(status); - this.updatedTime = LocalDateTime.now(); - } -} diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtworkStatus.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtworkStatus.java deleted file mode 100644 index 9a8153a2..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/entity/ExhibitionArtworkStatus.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.entity; - -import com.fasterxml.jackson.annotation.JsonCreator; - -import java.util.stream.Stream; - -public enum ExhibitionArtworkStatus { - submitted, - pending, - accepted, - rejected; - - @JsonCreator(mode = JsonCreator.Mode.DELEGATING) - public static ExhibitionArtworkStatus create(String type) { - return Stream.of(ExhibitionArtworkStatus.values()) - .filter(status -> status.name().equals(type)) - .findFirst() - .orElseThrow(() -> new IllegalArgumentException("부적절한 상태입니다. 지원하는 형식 : " + - Stream.of(ExhibitionArtworkStatus.values()) - .map(ExhibitionArtworkStatus::name) - .reduce((a, b) -> a + ", " + b) - .get())); - } - -} diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/exception/NotFoundExhibitionException.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/exception/NotFoundExhibitionException.java deleted file mode 100644 index 1c01ec1a..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/exception/NotFoundExhibitionException.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.exception; - -import com.example.codebase.exception.NotFoundException; - -public class NotFoundExhibitionException extends NotFoundException { - public NotFoundExhibitionException() { - super("존재하지 않는 공모전입니다."); - } -} diff --git a/src/main/java/com/example/codebase/domain/exhibition_artwork/repository/ExhibitionArtworkRepository.java b/src/main/java/com/example/codebase/domain/exhibition_artwork/repository/ExhibitionArtworkRepository.java deleted file mode 100644 index 50ea9631..00000000 --- a/src/main/java/com/example/codebase/domain/exhibition_artwork/repository/ExhibitionArtworkRepository.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.example.codebase.domain.exhibition_artwork.repository; - -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtwork; -import org.springframework.data.jpa.repository.JpaRepository; - -import java.util.List; -import java.util.Optional; - -public interface ExhibitionArtworkRepository extends JpaRepository { - - List findAllByExhibitionId(Long exhibitionId); - - Optional findByExhibitionIdAndArtworkId(Long exhibitionId, Long artworkId); - -} diff --git a/src/main/resources/db/migration/V32__drop_exhibition_artwork_table.sql b/src/main/resources/db/migration/V32__drop_exhibition_artwork_table.sql new file mode 100644 index 00000000..d8d9ed21 --- /dev/null +++ b/src/main/resources/db/migration/V32__drop_exhibition_artwork_table.sql @@ -0,0 +1 @@ +drop table exhibition_artwork; \ No newline at end of file From aa5b1e8aa3089a7564506d61d074e8363501c4bc Mon Sep 17 00:00:00 2001 From: Hoon9901 Date: Wed, 11 Oct 2023 13:33:27 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20Exhibition=20Artwork=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=8C=A8=ED=82=A4=EC=A7=80=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/codebase/domain/artwork/entity/Artwork.java | 1 - .../example/codebase/domain/exhibition/entity/Exhibition.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java b/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java index 5430274e..1300fed8 100644 --- a/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java +++ b/src/main/java/com/example/codebase/domain/artwork/entity/Artwork.java @@ -3,7 +3,6 @@ import com.example.codebase.domain.artwork.dto.ArtworkCreateDTO; import com.example.codebase.domain.artwork.dto.ArtworkMediaCreateDTO; import com.example.codebase.domain.artwork.dto.ArtworkUpdateDTO; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtwork; import com.example.codebase.domain.member.entity.Member; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/src/main/java/com/example/codebase/domain/exhibition/entity/Exhibition.java b/src/main/java/com/example/codebase/domain/exhibition/entity/Exhibition.java index 19a9341b..a6b66ef7 100644 --- a/src/main/java/com/example/codebase/domain/exhibition/entity/Exhibition.java +++ b/src/main/java/com/example/codebase/domain/exhibition/entity/Exhibition.java @@ -1,7 +1,6 @@ package com.example.codebase.domain.exhibition.entity; import com.example.codebase.domain.exhibition.dto.CreateExhibitionDTO; -import com.example.codebase.domain.exhibition_artwork.entity.ExhibitionArtwork; import com.example.codebase.domain.member.entity.Member; import lombok.AllArgsConstructor; import lombok.Builder;