Creation of side-menu.

This commit is contained in:
Florian THIERRY
2024-04-02 16:18:03 +02:00
parent 0900df463a
commit c54e1c57d7
13 changed files with 258 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package org.codiki.infrastructure.category.repository;
import java.util.List;
import java.util.UUID;
import org.codiki.infrastructure.category.model.CategoryEntity;
@@ -16,4 +17,7 @@ public interface CategoryRepository extends JpaRepository<CategoryEntity, UUID>
) > 0
""", nativeQuery = true)
boolean existsAnyAssociatedPublication(@Param("categoryId") UUID categoryId);
@Query("SELECT c FROM CategoryEntity c JOIN FETCH c.subCategories")
List<CategoryEntity> findAll();
}