Interface UserRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<User,Long>, org.springframework.data.jpa.repository.JpaRepository<User,Long>, org.springframework.data.repository.PagingAndSortingRepository<User,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<User>, org.springframework.data.repository.Repository<User,Long>

public interface UserRepository extends org.springframework.data.jpa.repository.JpaRepository<User,Long>
Repository for the User Entity
See Also:
  • JpaRepository
Implementation Note:
Keywords
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds a user by the given username and platform.

    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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    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

    • findByUsernameAndPlatform

      Optional<User> findByUsernameAndPlatform(String username, Platform platform)
      Finds a user by the given username and platform.
      Parameters:
      username - the username to search by
      platform - the platform to search by
      Returns:
      an optional user