Interface ApiCourseKeyRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ApiCourseKey,,Long> org.springframework.data.repository.Repository<ApiCourseKey,Long>
@Repository
public interface ApiCourseKeyRepository
extends org.springframework.data.repository.CrudRepository<ApiCourseKey,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByCourseIdAndRevokedFalseAndExpiresAtAfterOrderByCreatedAtDesc(Long courseId, ZonedDateTime now) findByIdAndCourseId(Long id, Long courseId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findByCourseIdAndRevokedFalseAndExpiresAtAfterOrderByCreatedAtDesc
List<ApiCourseKey> findByCourseIdAndRevokedFalseAndExpiresAtAfterOrderByCreatedAtDesc(Long courseId, ZonedDateTime now) -
findByIdAndCourseId
-