package com.izouma.wenlvju.repo;

import com.izouma.wenlvju.domain.District;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DistrictRepo extends JpaRepository<District, Long>, JpaSpecificationExecutor<District> {
    List<District> findAllByParent(Long parent);
}