-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[기능제안1] soft delete 지원 #123
Comments
@sjh836 우선 라이브러리 단 지원이 없는 상황에서 @Modifying
@Query(“UPDATE table SET state = 0 WHERE id = :id”)
int softDeleteById(String id) 말씀해주신대로 해당 패턴은 많이 사용되는 패턴이긴 해서, 지원을 고민해봤을 때 |
오우... 그럴수 있겠네요 전제
delete flag 의 타입 case
고민함께 해주셔서 감사합니다 (_ _) |
음 코멘트 주신 내용에서 생각해보니, 단순히 flag 만 수정하는게 아닌 flag 의 타입은 현재 추정하기로는 어노테이션에 맞는 값만 잘 넣어준다면 제안주신 내용은 조금 더 검토하여 지원하는 방향으로 진행해보겠습니다! |
안녕하세요? spring data jdbc, naver jdbc plus 를 사용하고 있습니다.
기능을 구현하다보니, 반복되는 패턴들이 있어서, 몇가지 적어보려합니다.
@SoftDeleteFlag
어노테이션으로 flag 식별하여 sql 을 생성하고Simple*Impl
에서 재정의UPDATE ${table} SET ${softDeleteFlagVar} = false WHERE ${id} = :id
ByIdAndActive
와 같은식으로 개발자가 알아서..)감사합니다.
The text was updated successfully, but these errors were encountered: