Skip to content

Commit

Permalink
feat : save 메서드를 saveAll로 변경하기 위해 saveAll 메서드 추가 (Fastcampus-Final-Te…
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdmstjs committed Oct 24, 2023
1 parent 6116f44 commit 297b5f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
import com.javajober.core.exception.ApplicationException;
import org.springframework.data.repository.Repository;

import java.util.List;
import java.util.Optional;

public interface FileBlockRepository extends Repository<FileBlock, Long> {

FileBlock save(final FileBlock fileBlock);

List<FileBlock> saveAll(final Iterable<FileBlock> fileBlocks);

Optional<FileBlock> findByIdAndDeletedAtIsNull(final Long id);

default FileBlock findFileBlock(final Long id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
import com.javajober.blocks.freeBlock.domain.FreeBlock;
import org.springframework.data.repository.Repository;

import java.util.List;
import java.util.Optional;

public interface FreeBlockRepository extends Repository<FreeBlock, Long> {

FreeBlock save(final FreeBlock freeBlock);

List<FreeBlock> saveAll(final Iterable<FreeBlock> freeBlocks);

Optional<FreeBlock> findByIdAndDeletedAtIsNull(final Long freeId);

default FreeBlock findFreeBlock(final Long freeId) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.javajober.blocks.listBlock.repository;

import java.util.List;
import java.util.Optional;

import com.javajober.blocks.listBlock.domain.ListBlock;
Expand All @@ -12,6 +13,8 @@ public interface ListBlockRepository extends Repository<ListBlock, Long> {

ListBlock save(final ListBlock listBlock);

List<ListBlock> saveAll(final Iterable<ListBlock> listBlocks);

Optional<ListBlock> findByIdAndDeletedAtIsNull(final Long id);

default ListBlock findListBlock(final Long id) {
Expand Down

0 comments on commit 297b5f8

Please sign in to comment.