2023-06-28 15:28:12 +02:00
|
|
|
package eu.dnetlib.openaire.community.repository;
|
2023-06-12 14:30:42 +02:00
|
|
|
|
2023-06-12 14:47:27 +02:00
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
2023-06-20 09:10:14 +02:00
|
|
|
import org.springframework.data.domain.Page;
|
2023-06-30 10:46:20 +02:00
|
|
|
import org.springframework.data.domain.Pageable;
|
2023-06-12 14:30:42 +02:00
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
|
2023-06-28 15:28:12 +02:00
|
|
|
import eu.dnetlib.openaire.community.model.DbProject;
|
|
|
|
import eu.dnetlib.openaire.community.model.DbProjectPK;
|
2023-06-12 14:30:42 +02:00
|
|
|
|
2023-06-12 14:47:27 +02:00
|
|
|
@ConditionalOnProperty(value = "openaire.exporter.enable.community", havingValue = "true")
|
2023-06-14 13:53:59 +02:00
|
|
|
public interface DbProjectRepository extends JpaRepository<DbProject, DbProjectPK> {
|
|
|
|
|
2023-06-30 10:46:20 +02:00
|
|
|
Page<DbProject> findByCommunity(String community, Pageable page);
|
2023-06-12 14:30:42 +02:00
|
|
|
|
2023-07-12 09:49:08 +02:00
|
|
|
void deleteByCommunity(String id);
|
|
|
|
|
2023-06-12 14:30:42 +02:00
|
|
|
}
|