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.CaraBayar; @Repository("CaraBayarDao") public interface CaraBayarDao extends PagingAndSortingRepository { @Query("select model from CaraBayar model where model.id=:id") CaraBayar findByIdCaraBayar(@Param("id") Integer id); }