HHH-17772 allow array as return type for @Find methods

add tests
This commit is contained in:
Gavin King 2024-03-01 12:04:55 +01:00
parent 7ad39a86e9
commit 3ca494be79
2 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,9 @@ public interface Dao {
@Find @Find
List<Bean> beansForText(String text); List<Bean> beansForText(String text);
@Find
Bean[] beansAsArray(String text);
@HQL("where isbn = ?1") @HQL("where isbn = ?1")
List<Book> sortedBooksForIsbn(String isbn, Order<? super Book>... order); List<Book> sortedBooksForIsbn(String isbn, Order<? super Book>... order);

View File

@ -66,6 +66,9 @@ public interface BookAuthorRepository {
@Find @Find
List<Book> byPubDate3(LocalDate publicationDate, Sort<? super Book>... order); List<Book> byPubDate3(LocalDate publicationDate, Sort<? super Book>... order);
@Find
Book[] bookArrayByTitle(String title);
@Insert @Insert
void create(Book book); void create(Book book);