Interface NoteRepository

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

public interface NoteRepository extends org.springframework.data.jpa.repository.JpaRepository<Note,Long>
Repository for persisting and querying Note records.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds the note associated with a given assignment.

    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

    • findByAssignment

      Optional<Note> findByAssignment(Assignment assignment)
      Finds the note associated with a given assignment.
      Parameters:
      assignment - the assignment to search for
      Returns:
      an optional containing the note, if one exists