Interface ProblemSubmitJpaRepository

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

public interface ProblemSubmitJpaRepository extends org.springframework.data.jpa.repository.JpaRepository<ProblemSubmit,Integer>
ProblemSubmitJpaRepository는 Problem 제출 엔티티에 대한 데이터 액세스 기능을 제공.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.springframework.data.domain.Page<ProblemSubmit>
    findByProblemRequest_Problem_Id(Integer problemIdx, org.springframework.data.domain.Pageable pageable)
     
     

    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

    • findByProblemRequest_Problem_Id

      org.springframework.data.domain.Page<ProblemSubmit> findByProblemRequest_Problem_Id(Integer problemIdx, org.springframework.data.domain.Pageable pageable)
    • findProjectIdByProblemRequestId

      @Query("SELECT ps.projectId FROM ProblemSubmit ps WHERE ps.problemRequest.id = :problemRequestId") Optional<Integer> findProjectIdByProblemRequestId(@Param("problemRequestId") Integer problemRequestId)
    • existsByProblemRequest

      boolean existsByProblemRequest(ProblemRequest problemRequest)