public interface AttachmentDao extends org.springframework.data.jpa.repository.JpaRepository<org.squashtest.tm.domain.attachment.Attachment,Long>, CustomAttachmentDao
| Modifier and Type | Method and Description |
|---|---|
Set<org.squashtest.tm.domain.attachment.Attachment> |
findAllAttachments(Long attachmentListId)
Returns all the attachments that belong to the given AttachmentList
|
org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> |
findAllAttachmentsPagined(Long attachmentListId,
org.springframework.data.domain.Pageable pageable)
Same than above, paged version.
|
org.squashtest.tm.domain.attachment.Attachment |
findAttachmentWithContent(Long attachmentId)
Deprecated.
not used - remove in 1.15 if it's still not used
|
org.squashtest.tm.domain.attachment.Attachment |
findById(long attachmentId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, saveremoveAll, removeAttachmentorg.squashtest.tm.domain.attachment.Attachment findById(long attachmentId)
@Deprecated org.squashtest.tm.domain.attachment.Attachment findAttachmentWithContent(@Param(value="id") Long attachmentId)
Set<org.squashtest.tm.domain.attachment.Attachment> findAllAttachments(@Param(value="id") Long attachmentListId)
attachmentListId - @Query(value="select Attachment from AttachmentList AttachmentList join AttachmentList.attachments Attachment where AttachmentList.id = :id")
org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> findAllAttachmentsPagined(@Param(value="id")
Long attachmentListId,
org.springframework.data.domain.Pageable pageable)
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.