[배성준] sprint6#95
Open
seongjuun wants to merge 2 commits into
Hidden character warning
The head ref may contain hidden characters: "\ubc30\uc131\uc900-sprint6"
Open
Conversation
- JCF/File 기반 레포지토리 전체 삭제, Spring Data JPA 레포지토리로 교체 - BaseEntity / BaseUpdatableEntity 도입으로 공통 필드(id, createdAt, updatedAt) 추출 - 각 도메인별 Mapper 추가 (Entity → DTO 변환 분리) - DTO 클래스 신규 추가: BinaryContentDto, MessageDto, ReadStatusDto, UserStatusDto - PageResponse 도입으로 페이지네이션 응답 표준화 - BinaryContentStorage 인터페이스 및 LocalBinaryContentStorage 구현체 추가 - schema.sql 작성 및 application.yaml 설정 정비
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
기본 요구사항
데이터베이스
discodeitdiscodeit_userdiscodeit1234Spring Data JPA 적용하기
application.yaml파일에 작성하세요.application.yaml파일에 작성하세요.엔티티 정의하기
createdAt,updatedAt속성이 자동으로 설정되도록 구현하세요.@CreatedDate,@LastModifiedDate@Entity,@Table@Column,@Enumerated@OneToMany,@OneToOne,@ManyToOne@JoinColumn,@JoinTablecascade,orphanRemoval레포지토리와 서비스에 JPA 도입하기
트랜잭션,영속성 전이,변경 감지,지연로딩DTO 적극 도입하기
BinaryContent 저장 로직 고도화
fileName,size,contentType)만 표현하도록bytes속성을 제거하세요.byte[]데이터 저장을 담당하는 인터페이스를 설계하세요.UUID put(UUID, byte[])byte[]데이터를 저장합니다.InputStream get(UUID)byte[]데이터를 읽어 InputStream 타입으로 반환합니다.ResponseEntity<?> download(BinaryContentDto)discodeit.storage.type값이local인 경우에만 Bean으로 등록되어야 합니다.페이징과 정렬
심화 요구사항
N+1 문제
읽기전용 트랜잭션 활용
이때 서비스 레이어의 조회 메소드에서 발생할 수 있는 문제를 식별하고,
읽기 전용 트랜잭션을 활용해 문제를 해결해보세요.
OSIV 비활성화하기
페이지네이션 최적화