μ€λͺ
π
νλΉλ λ΄λΉ @hambining
π¨Β μ€λ³΅ μ½λ too much
childRepository.findById(childId).orElseThrow(()->new ChildException(ChildErrorCode.NOT_FOUND));
if(!childRepository.existsByChildIdAndParentId(childId, parent.getId())) {
throw new RoomConditionException(RoomConditionErrorCode.UNAUTHORIZED_ACCESS);
}
π¨Β νμ€ μ½λ γ΄γ΄
RoomCondition roomCondition = roomConditionRepository.findTopByChildIdOrderByCreatedAtDesc(childId).orElseThrow(()->new RoomConditionException(RoomConditionErrorCode.NOT_FOUND));
RoomCondition roomCondition = roomConditionRepository.
findTopByChildIdOrderByCreatedAtDesc(childId).
orElseThrow(() ->new RoomConditionException(RoomConditionErrorCode.NOT_FOUND));
μ£Όλ
μ΄ λ΄λΉ @jh010303
π¨Β SRP μλ°
μλΉμ€ λ€μμ λν μλκ° μ ν β
1/3/7μΌ κ³μ°νλ ν¨μκ° λ°λ‘ μμλ€λ©΄ ?
κ³΅ν΅ λΆλΆ κ³μ°μ λ°λ‘ λΉΌμΌν¨
쿼리 μλΉμ€μΈλ° 쿼리λ₯Ό λ λ¦¬μ§ μλ κ³μ°μ νλ€ ? β SRP μλ°
calculating β 쿼리 μλΉμ€μμ γ΄γ΄γ΄
π¨Β 컨벀μ
@!!@!!!!
μ§ν μν© β
νλΉ
μ€ν
μ€λͺ π
νλΉλ λ΄λΉ @hambining
π¨Β μ€λ³΅ μ½λ too much
π¨Β νμ€ μ½λ γ΄γ΄
μ£Όλ μ΄ λ΄λΉ @jh010303
π¨Β SRP μλ°
μλΉμ€ λ€μμ λν μλκ° μ ν β
1/3/7μΌ κ³μ°νλ ν¨μκ° λ°λ‘ μμλ€λ©΄ ?
κ³΅ν΅ λΆλΆ κ³μ°μ λ°λ‘ λΉΌμΌν¨
쿼리 μλΉμ€μΈλ° 쿼리λ₯Ό λ λ¦¬μ§ μλ κ³μ°μ νλ€ ? β SRP μλ°
calculating β 쿼리 μλΉμ€μμ γ΄γ΄γ΄
π¨Β 컨벀μ @!!@!!!!
μ§ν μν© β
νλΉ
μ€ν