package com.example.removetolocal.newdevice.dao;

import com.example.removetolocal.newdevice.domin.PackingLibrary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author dengdiyi
 */
public interface PackingLibraryDao extends JpaRepository<PackingLibrary, Integer>, JpaSpecificationExecutor<PackingLibrary> {

    List<PackingLibrary> findAllByPartParentId(Integer id);

    PackingLibrary findByOldId(Integer oldId);

    List<PackingLibrary> findAllByIsRoot(Integer isRoot);
}
