Add findOne function in spring boot jpa supporter #531
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.
Motivation
fun findByUsername(username: String): User?
functionfun findByUsername(username: String): User?
함수로 부터 염감을 받았습니다Modifications
[Eng] when I use unique key and if I use findAll then I need to check in (one/null/more than two rows) application/adapter layer or using extension function in repository layer, I thinks it's not simple so I create new function
[Kor] unique key 를 사용할 때 그리고 findAll를 사용할 경우에는 1개/null/2개이상 검증을 application/adpater 레이어에서 확인하던지 아니면 repository layer의 확장함수를 만들어야 합니다, 간단한 방식이 더 조아 하기 때문에 새로운 기능을 개발 하였습니다
Result
Closes