Feat: DIR Entity, Repository, Test 추가 (연관관계 매핑 전) #8
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.
DIR Entity, Repository, Test 추가하였습니다.
Repository 는 생성, 조회만 추가하였고, 현재 PageInDIR, UnitInDIR 연관관계 매핑은 포함되어 있지 않습니다.
기존 설계에서 한 가지 수정한 것은 클라이언트에게 제공될 탐색 경로가 필요하다고 판단되어 path 를 추가했습니다.
부모 DIR 이 /root/parentDIR 의 경로에 존재하고, 해당 경로에 sample.unit 을 추가하고 싶다면
parent path : /root/
parent DIR Name : parentDIR
child path : parent path + parent DIR Name + "/"
child unit name : sample
이 됩니다.
모든 DIR 내 조회 생성 로직은 create(child path, child unit name) 로 이루어져 있습니다.