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

26 lines
720 B
Java

package com.jasamedika.medifirst2000.dao;
import java.util.List;
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.DataAsuransi;
/**
* Repository class for DataAsuransi
*
* @author Generator
*/
@Repository("DataAsuransiDao")
public interface DataAsuransiDao extends PagingAndSortingRepository<DataAsuransi, String> {
@Query("select model from DataAsuransi model where model.noKepesertaan=:noKartu")
List<DataAsuransi> findByNoKepesertaan(@Param("noKartu") String noKartu);
}