Skip to content

Commit

Permalink
[Del] #248 - ObjectiveJpaRepository 사용하지 않는 시그니처 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
its-sky committed Mar 12, 2024
1 parent 9786782 commit 52c0baa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

public interface ObjectiveJpaRepository extends JpaRepository<Objective, Long> {

Long countAllByUserAndIsClosed(User user, boolean isClosed);
@Query("select o from Objective o join fetch o.user where o.id = :objective_id")
Optional<Objective> findObjectiveAndUserById(@Param("objective_id") Long objectiveId);
@Query("select distinct o from Objective o left join fetch o.keyResultList kr left join kr.taskList t where o.id = :objectiveId and o.isClosed = false")
Expand All @@ -21,7 +20,6 @@ public interface ObjectiveJpaRepository extends JpaRepository<Objective, Long> {
@Modifying(clearAutomatically = true)
@Query("UPDATE Objective o SET o.idx = o.idx + 1 WHERE o.user.id = :userId")
void bulkUpdateIdxIncrease(@Param("userId") Long userId);
Long countAllByUserId(Long userId);
@Modifying(clearAutomatically = true)
@Query("UPDATE Objective o SET o.idx = o.idx + 1 WHERE o.idx >= :lBound AND o.idx < :uBound AND o.user.id = :userId AND o.id != :targetId")
void bulkUpdateIdxIncrease(@Param("lBound") int lowerBound, @Param("uBound") int upperBound, @Param("userId") Long userId, @Param("targetId") Long targetId);
Expand All @@ -32,5 +30,6 @@ public interface ObjectiveJpaRepository extends JpaRepository<Objective, Long> {
@Query("UPDATE Objective o SET o.idx = o.idx - 1 WHERE o.idx >= :lBound AND o.user.id = :userId")
void bulkUpdateIdxDecreaseAfter(@Param("lBound") int lowerBound, @Param("userId") Long userId);
List<Objective> findAllByUserIn(List<User> userList);
Long countAllByUserId(Long userId);

}

0 comments on commit 52c0baa

Please sign in to comment.