package com.example.removetolocal.oldtrain.dao;

import com.example.removetolocal.oldtrain.DevTrainEnroll;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author dengdiyi
 */
public interface DevTrainEnrollDao extends JpaRepository<DevTrainEnroll, Integer>, JpaSpecificationExecutor<DevTrainEnroll> {
List<DevTrainEnroll> findAllByTrainId(Integer trainId);
}
