package com.jasamedika.medifirst2000.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.jasamedika.medifirst2000.entities.ProgramStudi;

@Repository("ProgramStudiDao")
public interface ProgramStudiDao extends CrudRepository<ProgramStudi, Integer> {
		@Query("select model from ProgramStudi model where lower(model.nama) =:nama")
		ProgramStudi getIdProgramStudiByNama(@Param("nama") String nama);

}
