Skip to content

Commit

Permalink
Replace List<Book> with Book[] array in BookRepository.
Browse files Browse the repository at this point in the history
  • Loading branch information
savinov committed Apr 10, 2024
1 parent f72d465 commit 5e277eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
public interface BookRepository extends CrudRepository<Book, String> {

@Query(function = "myfunc")
void myfunc(List<Book> books);
void myfunc(Book[] books);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ void myfunc() {
book.setId(1);
book.setName("BookName1");
book.setYear(2024);
repository.myfunc(List.of(book));
repository.myfunc(List.of(book).toArray(new Book[0]));
}
}

0 comments on commit 5e277eb

Please sign in to comment.