Package su.onno.repository
Interface DocumentRepository<T extends DocumentObject>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,UUID> org.springframework.data.repository.ListCrudRepository<T,,UUID> org.springframework.data.repository.Repository<T,UUID>
@NoRepositoryBean
public interface DocumentRepository<T extends DocumentObject>
extends org.springframework.data.repository.ListCrudRepository<T,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionDocuments in the date range that are not marked for deletion.findActiveById(UUID id) The document with this id, unless it is marked for deletion.findActiveByNumber(String number) The document with this number, unless it is marked for deletion.Every document that is not marked for deletion — the safe default for business logic.findByDateBetween(LocalDateTime from, LocalDateTime to) findByNumber(String number) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
-
Method Details
-
findByNumber
-
findByDateBetween
-
findByDeletionMarkFalse
-
findByNumberAndDeletionMarkFalse
-
findByIdAndDeletionMarkFalse
-
findByDateBetweenAndDeletionMarkFalse
-
findAllActive
Every document that is not marked for deletion — the safe default for business logic. -
findActiveByNumber
The document with this number, unless it is marked for deletion. -
findActiveById
The document with this id, unless it is marked for deletion. -
findActiveByDateBetween
Documents in the date range that are not marked for deletion.
-