Interface EntityDatatableChecksRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<EntityDatatableChecks,Long>, org.springframework.data.jpa.repository.JpaRepository<EntityDatatableChecks,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<EntityDatatableChecks>, org.springframework.data.repository.ListCrudRepository<EntityDatatableChecks,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<EntityDatatableChecks,Long>, org.springframework.data.repository.PagingAndSortingRepository<EntityDatatableChecks,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<EntityDatatableChecks>, org.springframework.data.repository.Repository<EntityDatatableChecks,Long>

public interface EntityDatatableChecksRepository extends org.springframework.data.jpa.repository.JpaRepository<EntityDatatableChecks,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<EntityDatatableChecks>
  • Method Details

    • findByEntityAndStatus

      List<EntityDatatableChecks> findByEntityAndStatus(String entityName, Integer status)
    • findByEntityAndStatusAndSubtype

      @Query(" SELECT dt\n FROM EntityDatatableChecks dt\n INNER JOIN RegisteredDatatable rdt ON rdt.datatableName = dt.datatableName\n WHERE dt.entity = :entity\n AND dt.status = :status\n AND rdt.subtype = :subtype\n") List<EntityDatatableChecks> findByEntityAndStatusAndSubtype(@Param("entity") String entity, @Param("status") Integer status, @Param("subtype") String subtype)
    • findByEntityStatusAndProduct

      @Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.productId = :productId ") List<EntityDatatableChecks> findByEntityStatusAndProduct(@Param("entity") String entity, @Param("status") Integer status, @Param("productId") Long productId)
    • findByEntityStatusAndNoProduct

      @Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.productId IS NULL ") List<EntityDatatableChecks> findByEntityStatusAndNoProduct(@Param("entity") String entity, @Param("status") Integer status)
    • findByEntityStatusAndDatatableIdAndProductId

      @Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.datatableName = :datatableName AND t.productId = :productId") List<EntityDatatableChecks> findByEntityStatusAndDatatableIdAndProductId(@Param("entity") String entityName, @Param("status") Integer status, @Param("datatableName") String datatableName, @Param("productId") Long productId)
    • findByEntityStatusAndDatatableIdAndNoProduct

      @Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.datatableName = :datatableName AND t.productId IS NULL") List<EntityDatatableChecks> findByEntityStatusAndDatatableIdAndNoProduct(@Param("entity") String entityName, @Param("status") Integer status, @Param("datatableName") String datatableName)