Interface CommissionRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Commission,Long>,org.springframework.data.jpa.repository.JpaRepository<Commission,Long>,org.springframework.data.repository.PagingAndSortingRepository<Commission,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Commission>,org.springframework.data.repository.Repository<Commission,Long>
public interface CommissionRepository extends org.springframework.data.jpa.repository.JpaRepository<Commission,Long>
The CommissionRepository contains a list of methods used to query the database for items in theCommissiontable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Commission>findByCommissionerOrderByTimestamp(Profile commissioner)Method to get a list ofCommissionsubmitted by a specific user, ordered by timestamp.List<Commission>findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition(Profile seller, int position)Method to get a list ofCommissionfor a specific seller, where the waitlist position is greater than a specificpositionand ordered by their position in the waitlist.List<Commission>getAllBySellerOrderByTimestamp(Profile seller)Method to get a list ofCommissionfor a specific seller, ordered by timestamp.-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
getAllBySellerOrderByTimestamp
List<Commission> getAllBySellerOrderByTimestamp(Profile seller)
Method to get a list ofCommissionfor a specific seller, ordered by timestamp.- Parameters:
seller- An instance ofProfilerepresenting the commissioned party.
-
findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition
List<Commission> findBySellerAndWaitlistPositionGreaterThanOrderByWaitlistPosition(Profile seller, int position)
Method to get a list ofCommissionfor a specific seller, where the waitlist position is greater than a specificpositionand ordered by their position in the waitlist.- Parameters:
seller- An instance ofProfilerepresenting the commissioned party.position- The int value to search for elements greater than.
-
findByCommissionerOrderByTimestamp
List<Commission> findByCommissionerOrderByTimestamp(Profile commissioner)
Method to get a list ofCommissionsubmitted by a specific user, ordered by timestamp.- Parameters:
commissioner- An instance ofProfilerepresenting the commissioning party.
-
-