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

io.rocketbase.commons.repository.AssetEntityRepository Maven / Gradle / Ivy

package io.rocketbase.commons.repository;

import io.rocketbase.commons.model.AssetJpaEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

public interface AssetEntityRepository extends PagingAndSortingRepository, JpaSpecificationExecutor {
    Optional findBySystemRefId(String systemRefId);

    @Query("select a from AssetJpaEntity a where a.referenceHash is null and a.referenceUrl is not null")
    Page findAssetsWithMissingReferenceHash(Pageable pageable);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy