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 TypeMethodDescriptionfindByAssignment(Assignment assignment) 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, 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
-
findByAssignment
Finds the note associated with a given assignment.- Parameters:
assignment- the assignment to search for- Returns:
- an optional containing the note, if one exists
-