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.RiwayatKehamilanObstetri;

/**
 * Repository class for RiwayatKehamilanObstetriDao
 * 
 * @author Askur
 */
@Repository("RiwayatKehamilanObstetriDao")
public interface RiwayatKehamilanObstetriDao extends PagingAndSortingRepository<RiwayatKehamilanObstetri, String> {
	@Query("select p from RiwayatKehamilanObstetri p where p.papObstetri.noRec=:noRec ")	
	List<RiwayatKehamilanObstetri> findByRiwayatKehamilan(@Param("noRec") String noRec);
	
}
