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.stereotype.Repository; import com.jasamedika.medifirst2000.entities.GolonganDarah; import com.jasamedika.medifirst2000.entities.Rhesus; @Repository("GolonganDarahRhesusDao") public interface GolonganDarahRhesusDao extends PagingAndSortingRepository{ @Query("select concat(a.id,' ',b.id,',',a.golonganDarah,' ',b.Rhesus) from GolonganDarah a,Rhesus b") public List findGolonganDarahRhesus(); @Query("select model from GolonganDarah model") public List findGolonganDarah(); @Query("select model from Rhesus model") public List findRhesus(); }