Package edu.ucsb.cs156.jobs.repositories
Interface JobsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Job,,Long> org.springframework.data.jpa.repository.JpaRepository<Job,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<Job>,org.springframework.data.repository.ListCrudRepository<Job,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Job,,Long> org.springframework.data.repository.PagingAndSortingRepository<Job,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Job>,org.springframework.data.repository.Repository<Job,Long>
@Repository
public interface JobsRepository
extends org.springframework.data.jpa.repository.JpaRepository<Job,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Job>
Spring Data repository for
Job entities. Paging comes from JpaRepository; JpaSpecificationExecutor backs /paginated's optional filters, composed as a dynamic
Specification<Job> rather than a combinatorial set of derived-query methods for every
combination of filters; scope-based queries support apps that associate jobs with a domain object
(see Job.scopeType/Job.scopeId).-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByScopeTypeAndScopeId(String scopeType, Long scopeId) findByScopeTypeAndScopeIdOrderByIdDesc(String scopeType, Long scopeId) 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.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findBy, findOneMethods 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
-
findAllByOrderByIdDesc
-
findByScopeTypeAndScopeIdOrderByIdDesc
-
deleteByScopeTypeAndScopeId
-