Interface AttachmentRepository

    • Method Detail

      • findByFileId

        java.util.Optional<Attachment> findByFileId​(java.lang.String fileId)
      • findAllByLaunchIdIn

        java.util.List<Attachment> findAllByLaunchIdIn​(java.util.Collection<java.lang.Long> launchIds)
      • updateLaunchIdByProjectIdAndLaunchId

        @Modifying
        @Query(value="UPDATE attachment SET launch_id = :newLaunchId WHERE project_id = :projectId AND launch_id = :currentLaunchId",
               nativeQuery=true)
        void updateLaunchIdByProjectIdAndLaunchId​(@Param("projectId")
                                                  java.lang.Long projectId,
                                                  @Param("currentLaunchId")
                                                  java.lang.Long currentLaunchId,
                                                  @Param("newLaunchId")
                                                  java.lang.Long newLaunchId)