io.mosip.kernel.masterdata.repository.ExceptionalHolidayRepository Maven / Gradle / Ivy
package io.mosip.kernel.masterdata.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository;
import io.mosip.kernel.masterdata.entity.ExceptionalHoliday;
import io.mosip.kernel.masterdata.entity.id.ExcptionalHolidayId;
/**
* @author Kishan Rathore
*
*/
@Repository
public interface ExceptionalHolidayRepository extends BaseRepository {
@Query("From ExceptionalHoliday where regcntr_id=?1 and lang_code=?2 and (isDeleted = false or isDeleted is null) and isActive = true")
List findAllNonDeletedExceptionalHoliday(String regCenterId, String langcode);
}