Interface AttachmentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Attachment>, org.springframework.data.repository.ListCrudRepository<Attachment, String>, org.springframework.data.repository.ListPagingAndSortingRepository<Attachment, String>, org.springframework.data.repository.PagingAndSortingRepository<Attachment, String>, org.springframework.data.repository.query.QueryByExampleExecutor<Attachment>, org.springframework.data.repository.Repository<Attachment, String>
@Repository
@NullMarked
public interface AttachmentRepository
extends org.springframework.data.jpa.repository.JpaRepository<Attachment, String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Attachment>
对 附件 进行数据库操作的 JPA 接口
- Author:
- xezzon
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T> -
Method Summary
Modifier and TypeMethodDescriptionfindByBizTypeAndBizId(String bizType, String bizId) 查询业务关联的附件列表Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, updateMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByBizTypeAndBizId
查询业务关联的附件列表- Parameters:
bizType- 业务类型bizId- 业务ID- Returns:
- 附件列表
-