Fix categories loading in side menu component.
This commit is contained in:
1 parent
5e4068b141
commit
d9b856bd43
6 files changed
+75
-37
No files matched your search
+1
-1
@@ -18,6 +18,6 @@ public interface CategoryRepository extends JpaRepository<CategoryEntity, UUID>
|
||||
""", nativeQuery = true)
|
||||
boolean existsAnyAssociatedPublication(@Param("categoryId") UUID categoryId);
|
||||
|
||||
@Query("SELECT c FROM CategoryEntity c JOIN FETCH c.subCategories")
|
||||
@Query("SELECT c FROM CategoryEntity c LEFT JOIN FETCH c.subCategories")
|
||||
List<CategoryEntity> findAll();
|
||||
}
|
||||
Reference in new issue
Block a user