All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.kernel.masterdata.repository.TemplateRepository Maven / Gradle / Ivy

There is a newer version: 1.2.1.0
Show newest version
package io.mosip.kernel.masterdata.repository;

import java.time.LocalDateTime;
import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
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.Template;

/**
 * @author Neha
 * @author Megha Tanga
 * @since 1.0.0
 * 
 */
@Repository
public interface TemplateRepository extends BaseRepository {

	/**
	 * Get all Template types
	 *
	 * @param entityClass
	 *            the entity class type
	 * @return All the {@link Template}
	 */
	@Query("FROM Template WHERE (isDeleted is null or isDeleted =false) and isActive = true")
	List