목록2025/02/02 (1)
정구리의 우주정복
[Kotlin] Dirty Checking (더티 체킹)
@Transactional override fun deleteRoutine(userId:Long, routineId: Long): Long { // routine entity 가져와서 val deleteRoutine = routineRepository.findById(routineId).orElseThrow {IllegalArgumentException("routine not found")} // 유저 유효한지 확인하고 val loginUser = userRepository.findById(userId).orElseThrow {IllegalArgumentException("user not found")} if (deleteRoutine...
JAVA/STUDY
2025. 2. 2. 22:22