E
- The entity class to act on which must extend BaseEntity@NoRepositoryBean
public interface JpaBaseRepository<E extends BaseEntity>
Modifier and Type | Method and Description |
---|---|
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, saveAndFlush
findAll
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
java.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