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
List<Bean> beansForText(String text);
@Find
Bean[] beansAsArray(String text);
@HQL("where isbn = ?1")
List<Book> sortedBooksForIsbn(String isbn, Order<? super Book>... order);

View File

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