io.mosip.admin.bulkdataupload.repositories.DaysOfWeekListRepo Maven / Gradle / Ivy
package io.mosip.admin.bulkdataupload.repositories;
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.admin.bulkdataupload.entity.DaysOfWeek;
import io.mosip.admin.bulkdataupload.entity.id.WeekDayId;
@Repository("daysOfWeekRepo")
public interface DaysOfWeekListRepo extends BaseRepository {
@Query("SELECT d.name from DaysOfWeek d where d.code=?1 and d.langCode=?2 and (d.isDeleted is null or d.isDeleted = false) and d.isActive = true")
List findBycodeAndlangCode(String dayCode, String langCode);
@Query("FROM DaysOfWeek where langCode=?1 and (isDeleted is null or isDeleted = false) and isActive = true")
List findBylangCode(String langCode);
@Query("SELECT d from DaysOfWeek d where d.langCode=?1 and d.isGlobalWorking=true and (d.isDeleted is null or d.isDeleted = false) and d.isActive = true")
List findByAllGlobalWorkingTrue(String langCode);
}