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 Type
    Method
    Description
    findByAchievementName(String achievementName)
    Finds an achievement by its name

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByAchievementName

      Optional<Achievement> findByAchievementName(String achievementName)
      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