public interface TermAssociationRepository extends org.springframework.data.repository.PagingAndSortingRepository<TermAssociation,java.lang.String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<TermAssociation>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteBy(java.lang.String tenantId,
Document document) |
org.springframework.data.domain.Page<com.clusterra.pmbok.term.domain.model.term.Term> |
findBy(org.springframework.data.domain.Pageable pageable,
Document document) |
org.springframework.data.domain.Page<com.clusterra.pmbok.term.domain.model.term.Term> |
findBy(org.springframework.data.domain.Pageable pageable,
java.lang.String tenantId,
Document document,
java.lang.String searchBy) |
java.util.List<com.clusterra.pmbok.term.domain.model.term.Term> |
findBy(java.lang.String tenantId,
Document document) |
TermAssociation |
findBy(java.lang.String tenantId,
java.lang.String termId,
Document document) |
findAll, findAll@Query(value="select t from Term t, TermAssociation a where t.id = a.termId and a.document = ?1")
org.springframework.data.domain.Page<com.clusterra.pmbok.term.domain.model.term.Term> findBy(org.springframework.data.domain.Pageable pageable,
Document document)
@Query(value="select t from Term t, TermAssociation a where t.id = a.termId and a.tenantId = ?1 and a.document = ?2 and (lower(t.name) like lower(?3) or lower(t.description) like lower(?3))")
org.springframework.data.domain.Page<com.clusterra.pmbok.term.domain.model.term.Term> findBy(org.springframework.data.domain.Pageable pageable,
java.lang.String tenantId,
Document document,
java.lang.String searchBy)
@Query(value="select t from Term t, TermAssociation a where t.id = a.termId and a.tenantId = ?1 and a.document = ?2 ")
java.util.List<com.clusterra.pmbok.term.domain.model.term.Term> findBy(java.lang.String tenantId,
Document document)
@Query(value="select a from TermAssociation a where a.tenantId = ?1 and a.termId = ?2 and a.document = ?3") TermAssociation findBy(java.lang.String tenantId, java.lang.String termId, Document document)
@Modifying
@Query(value="delete from TermAssociation a where a.tenantId = ?1 and a.document = ?2")
void deleteBy(java.lang.String tenantId,
Document document)