Interface ServiceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CarService,,UUID> org.springframework.data.jpa.repository.JpaRepository<CarService,,UUID> org.springframework.data.repository.ListCrudRepository<CarService,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<CarService,,UUID> org.springframework.data.repository.PagingAndSortingRepository<CarService,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<CarService>,org.springframework.data.repository.Repository<CarService,UUID>
public interface ServiceRepository
extends org.springframework.data.jpa.repository.JpaRepository<CarService,UUID>
ServiceRepository.java - Repository interface for Service entity.
- Author:
- Kristian Popov
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByName(String name) Check if service with given name exists.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.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
-
existsByName
Check if service with given name exists.- Parameters:
name- - service name- Returns:
- true if service exists, false otherwise
-