diff --git a/backend/src/main/java/com/dragonguard/backend/domain/blockchain/repository/JpaBlockchainRepository.java b/backend/src/main/java/com/dragonguard/backend/domain/blockchain/repository/JpaBlockchainRepository.java index b6cc47ea..85374ea6 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/blockchain/repository/JpaBlockchainRepository.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/blockchain/repository/JpaBlockchainRepository.java @@ -5,22 +5,17 @@ import com.dragonguard.backend.domain.member.entity.Member; import org.springframework.data.jpa.repository.JpaRepository; -import org.springframework.data.jpa.repository.QueryHints; import java.util.Optional; -import javax.persistence.QueryHint; - /** * @author 김승진 * @description 블록체인 관련 DB와의 CRUD를 담당하는 클래스 */ public interface JpaBlockchainRepository extends JpaRepository, BlockchainRepository { - @QueryHints({@QueryHint(name = "javax.persistence.lock.timeout", value = "3000")}) Optional findByMemberAndContributeType( final Member member, final ContributeType contributeType); - @QueryHints({@QueryHint(name = "javax.persistence.lock.timeout", value = "3000")}) Optional findById(final Long id); } diff --git a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/repository/JpaGitRepoRepository.java b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/repository/JpaGitRepoRepository.java index 442f24c9..dd18263b 100644 --- a/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/repository/JpaGitRepoRepository.java +++ b/backend/src/main/java/com/dragonguard/backend/domain/gitrepo/repository/JpaGitRepoRepository.java @@ -16,7 +16,6 @@ */ public interface JpaGitRepoRepository extends JpaRepository, GitRepoRepository { @Lock(LockModeType.PESSIMISTIC_READ) - @Query("SELECT gr FROM GitRepo gr WHERE gr.name = :name") @QueryHints({@QueryHint(name = "javax.persistence.lock.timeout", value = "1500")}) Optional findByName(final String name); diff --git a/backend/src/main/java/com/dragonguard/backend/utils/CustomSpringELParser.java b/backend/src/main/java/com/dragonguard/backend/utils/CustomSpringELParser.java index e0298ef7..caed1efd 100644 --- a/backend/src/main/java/com/dragonguard/backend/utils/CustomSpringELParser.java +++ b/backend/src/main/java/com/dragonguard/backend/utils/CustomSpringELParser.java @@ -14,7 +14,8 @@ public class CustomSpringELParser { private static final Integer START_INDEX = 0; - public Object getDynamicValue(String[] parameterNames, Object[] args, String key) { + public Object getDynamicValue( + final String[] parameterNames, final Object[] args, final String key) { ExpressionParser parser = new SpelExpressionParser(); StandardEvaluationContext context = new StandardEvaluationContext();