Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/#131-change-folder-structure
Browse files Browse the repository at this point in the history
  • Loading branch information
GaHee99 committed Feb 22, 2024
2 parents 26d552a + fb75949 commit 2967854
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface WorkRepository extends JpaRepository<Work, Long> {
Optional<Work> getWorkByUserIdAndIsFirst(Long userId, Boolean status);
List<Work> findByUserIdAndIsFirstOrderByCreatedAtDesc(Long userId, boolean isFirst);
List<Work> findByUserIdAndIsFirstAndIsActiveOrderByCreatedAtDesc(Long userId, boolean isFirst, boolean isActive);
@Query("SELECT w FROM Work w JOIN FETCH w.user")
@Query("SELECT w FROM Work w JOIN FETCH w.user where w.user.id = :userId")
List<Work> findAllByUserId(Long userId);
@Query(value = "SELECT w FROM Work w WHERE LOWER(w.title) LIKE LOWER(CONCAT('%', :keyword, '%')) ORDER BY w.createdAt DESC")
List<Work> findByKeyword(String keyword);
Expand Down

0 comments on commit 2967854

Please sign in to comment.