Interface StudentAppUserRepository

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

@Repository public interface StudentAppUserRepository extends org.springframework.data.jpa.repository.JpaRepository<StudentAppUser,Long>
The repository for the student application users.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is used to delete a student app user by the student's ID.
    This method is used to find a student app user by the student's ID.

    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

    • deleteByStudentId

      void deleteByStudentId(Long studentId)
      This method is used to delete a student app user by the student's ID.
      Parameters:
      studentId - The ID of the student.
    • findByUsername

      Optional<StudentAppUser> findByUsername(String username)
      This method is used to find a student app user by the student's ID.
      Parameters:
      username - The username of the student.
      Returns:
      The student app user.