public interface DocumentRepository extends org.springframework.data.repository.PagingAndSortingRepository<Document,java.lang.String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Document>
| Modifier and Type | Method and Description |
|---|---|
int |
countBy(Template template) |
Document |
findBy(java.lang.String projectVersionId,
Template template) |
java.util.List<Document> |
findBy(Template template) |
java.util.List<Document> |
findByProjectVersionId(java.lang.String projectVersionId) |
java.util.Set<Template> |
findUsedTemplates(java.lang.String projectVersionId) |
findAll, findAll@Query(value="select d from Document d where d.projectVersionId = ?1") java.util.List<Document> findByProjectVersionId(java.lang.String projectVersionId)
@Query(value="select d from Document d where d.projectVersionId = ?1 and d.template = ?2") Document findBy(java.lang.String projectVersionId, Template template)
@Query(value="select d.template from Document d where d.projectVersionId = ?1") java.util.Set<Template> findUsedTemplates(java.lang.String projectVersionId)
@Query(value="select d from Document d where d.template = ?1") java.util.List<Document> findBy(Template template)
@Query(value="select count(d) from Document d where d.template = ?1") int countBy(Template template)