package cn.com.liandisys.ycjt.ggcx.train.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.jdbc.core.JdbcTemplate;

import cn.com.liandisys.ycjt.ggcx.train.model.Train;

public interface TrainDao extends PagingAndSortingRepository<Train, String>, JpaSpecificationExecutor<Train>

{
    public Page<Train> findAll(Pageable pageable);

    public Page<Train> findAll(Specification<Train> spec, Pageable pageable);
    
    public List<Train> findAll();

    public List<Train> findById(String id);
    
}
