package com.izouma.dingdong.repo.backstage;

import com.izouma.dingdong.domain.backstage.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.List;

public interface CategoryRepo extends JpaRepository<Category, Long>, JpaSpecificationExecutor<Category> {

    List<Category> findAllByParent(Long parentId);

}