public class TaskRepositoryJpa extends JpaRepository<Task,java.lang.Long> implements TaskRepository
DEFAULT_PAGE_SIZE, LOGGER
Constructor and Description |
---|
TaskRepositoryJpa() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Task> |
findTaskByTrainingId(Training training)
Obtain task given a training
|
java.util.stream.Stream<Task> |
openTasks()
Obtain a list of running tasks
|
protected java.lang.String |
persistenceUnitName()
Derived classes should implement this method to return the name of the
persistence unit
|
add, all, close, create, delete, deleteById, entityManager, entityManagerFactory, findById, first, first, iterator, iterator, last, page, pageWithFiltering, read, save, size, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected java.lang.String persistenceUnitName()
persistenceUnitName
in class JpaRepository<Task,java.lang.Long>
public java.util.stream.Stream<Task> openTasks()
openTasks
in interface TaskRepository
public java.util.Optional<Task> findTaskByTrainingId(Training training)
findTaskByTrainingId
in interface TaskRepository