Interface AchievementRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Achievement,,String> org.springframework.data.jpa.repository.JpaRepository<Achievement,,String> org.springframework.data.repository.ListCrudRepository<Achievement,,String> org.springframework.data.repository.ListPagingAndSortingRepository<Achievement,,String> org.springframework.data.repository.PagingAndSortingRepository<Achievement,,String> org.springframework.data.repository.query.QueryByExampleExecutor<Achievement>,org.springframework.data.repository.Repository<Achievement,String>
public interface AchievementRepository
extends org.springframework.data.jpa.repository.JpaRepository<Achievement,String>
Repository for achievements
- Version:
- 1.0
- Author:
- Anders
-
Method Summary
Modifier and TypeMethodDescriptionfindByAchievementName(String achievementName) Finds an achievement by its nameMethods 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
-
findByAchievementName
Finds an achievement by its name- Parameters:
achievementName- the name of the achievement to look up- Returns:
- an optional containing the achievement if it exists
-