Interface TicketRepository

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

@Repository public interface TicketRepository extends org.springframework.data.jpa.repository.JpaRepository<Ticket,UUID>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    existsByIdAndTeacher_SchoolOrParent_School(UUID id, @NotNull School teacherSchool, @NotNull School parentSchool)
     
    findByParentAndClosedAndSolved(Parent parent, @NotNull Boolean closed, @NotNull Boolean solved)
     
    findByTeacher_SchoolOrParent_School(@NotNull School teacherSchool, @NotNull School parentSchool)
     
    findByTeacherAndClosedAndSolved(Teacher teacher, @NotNull Boolean closed, @NotNull Boolean solved)
     

    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

    • findByTeacherAndClosedAndSolved

      List<Ticket> findByTeacherAndClosedAndSolved(Teacher teacher, @NotNull @NotNull Boolean closed, @NotNull @NotNull Boolean solved)
    • findByParentAndClosedAndSolved

      List<Ticket> findByParentAndClosedAndSolved(Parent parent, @NotNull @NotNull Boolean closed, @NotNull @NotNull Boolean solved)
    • findByTeacher_SchoolOrParent_School

      List<Ticket> findByTeacher_SchoolOrParent_School(@NotNull @NotNull School teacherSchool, @NotNull @NotNull School parentSchool)
    • existsByIdAndTeacher_SchoolOrParent_School

      boolean existsByIdAndTeacher_SchoolOrParent_School(UUID id, @NotNull @NotNull School teacherSchool, @NotNull @NotNull School parentSchool)