E - The entity class to act on which must extend BaseEntity@NoRepositoryBean
public interface JpaBaseRepository<E extends BaseEntity>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
deleteByIdIn(java.util.Set<java.lang.Long> ids)
Delete all entities whose ids are contained in the given set of ids.
|
boolean |
existsByUniqueId(java.lang.String uniqueId)
Find out whether an entity with the given unique id exists.
|
java.util.Optional<E> |
findByUniqueId(java.lang.String uniqueId)
Find an entity by its unique id.
|
<T> java.util.Optional<T> |
findByUniqueId(java.lang.String uniqueId,
java.lang.Class<T> type)
Find an entity by its unique id.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savejava.util.Optional<E> findByUniqueId(java.lang.String uniqueId)
uniqueId - The unique id to find an entity for<T> java.util.Optional<T> findByUniqueId(java.lang.String uniqueId,
java.lang.Class<T> type)
T - The class type which is a projection of EuniqueId - The unique id to find an entity fortype - The entity or projection type to returnboolean existsByUniqueId(java.lang.String uniqueId)
uniqueId - The unique id to check for existence@Modifying java.lang.Long deleteByIdIn(java.util.Set<java.lang.Long> ids)
ids - The ids of the entities to delete