mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-06 08:15:57 +00:00
fix(security): require explicit retry locking
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
6770be22c5
commit
fd932cc160
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import java.util.Optional;
|
|||
public interface SkillVersionRepository {
|
||||
Optional<SkillVersion> findById(Long id);
|
||||
default Optional<SkillVersion> findByIdForUpdate(Long id) {
|
||||
return findById(id);
|
||||
throw new UnsupportedOperationException("This repository does not provide row locking");
|
||||
}
|
||||
default Optional<SkillVersionStatus> findStatusByIdAndSkillId(Long id, Long skillId) {
|
||||
return findById(id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue