Package su.onno.repository
Interface CatalogRepository<T extends CatalogObject>
- 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 CatalogRepository<T extends CatalogObject>
extends org.springframework.data.repository.ListCrudRepository<T,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionfindActiveByCode(String code) The item with this code, unless it is marked for deletion.findActiveById(UUID id) The item with this id, unless it is marked for deletion.Every catalog item that is not marked for deletion — the safe default for business logic.findByCode(String code) 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
-
findByCode
-
findByDeletionMarkFalse
-
findByCodeAndDeletionMarkFalse
-
findByIdAndDeletionMarkFalse
-
findAllActive
Every catalog item that is not marked for deletion — the safe default for business logic. -
findActiveByCode
The item with this code, unless it is marked for deletion. -
findActiveById
The item with this id, unless it is marked for deletion.
-