2019-03-20 15:36:23 +01:00
|
|
|
package eu.dnetlib.data.mdstore.manager.repository;
|
|
|
|
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
2019-04-03 10:53:54 +02:00
|
|
|
import eu.dnetlib.data.mdstore.manager.common.model.MDStoreVersion;
|
2019-03-20 15:36:23 +01:00
|
|
|
|
|
|
|
@Repository
|
|
|
|
public interface MDStoreVersionRepository extends JpaRepository<MDStoreVersion, String> {
|
|
|
|
|
|
|
|
void deleteByMdstore(String id);
|
|
|
|
|
|
|
|
int countByMdstoreAndWriting(String id, boolean b);
|
|
|
|
|
|
|
|
int countByMdstoreAndReadCountGreaterThan(String id, int count);
|
|
|
|
|
2019-03-22 10:16:47 +01:00
|
|
|
Iterable<MDStoreVersion> findByMdstore(String mdId);
|
|
|
|
|
2019-03-20 15:36:23 +01:00
|
|
|
}
|