package com.bytesw.bytebot.repository;

import com.bytesw.bytebot.model.Leg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface LegRepository extends JpaRepository<Leg, Long>, JpaSpecificationExecutor<Leg> {
    List<Leg> findAllByFlight_Id(Long id);
}
