2021-01-07 11:34:56 +07:00

22 lines
591 B
Java

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.Pio;
/**
* Repository class for Pio
*
* @author Askur
*/
@Repository("PioDao")
public interface PioDao extends PagingAndSortingRepository<Pio, Integer> {
@Query("select model from Pio model where model.id=:id")
public Pio findById(@Param("id") Integer id);
}