package com.jasamedika.medifirst2000.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.Tor;

/**
 * Repository class for Tor
 * 
 * @author adik
 */
@Repository("TorDao")
public interface TorDao extends PagingAndSortingRepository<Tor, Integer> {
	@Query("select model from Tor model where model.id=:id")
	public Tor findById(@Param("id") Integer id);
	
	
}
