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

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