@Repository public interface CommentRepository extends org.springframework.data.jpa.repository.JpaRepository<Comment,Long>
Modifier and Type | Method and Description |
---|---|
long |
countByProcessInstanceId(String processInstanceId) |
long |
countByTaskId(String taskId) |
void |
deleteAllByProcessInstanceId(String processInstanceId) |
List<Comment> |
findByProcessInstanceId(String processInstanceId,
org.springframework.data.domain.Sort sort) |
List<Comment> |
findByTaskId(String taskId,
org.springframework.data.domain.Sort sort) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
List<Comment> findByProcessInstanceId(String processInstanceId, org.springframework.data.domain.Sort sort)
long countByTaskId(String taskId)
long countByProcessInstanceId(String processInstanceId)
@Modifying @Query(value="delete from Comment c where c.processInstanceId = :processInstanceId") void deleteAllByProcessInstanceId(@Param(value="processInstanceId") String processInstanceId)
Copyright © 2014–2015 Alfresco. All rights reserved.