mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
add a couple of extra tests for Jakarta Data
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
dd7aa947c1
commit
6c91c0c234
@ -24,4 +24,13 @@ public interface Bookshop extends CrudRepository<Book,String> {
|
|||||||
|
|
||||||
@Query("select count(this) where this.title like ?1 order by this.isbn")
|
@Query("select count(this) where this.title like ?1 order by this.isbn")
|
||||||
long count2(String title);
|
long count2(String title);
|
||||||
|
|
||||||
|
@Query("where isbn in :isbns and type = Book")
|
||||||
|
List<Book> books(List<String> isbns);
|
||||||
|
|
||||||
|
@Query("delete from Book where type = org.hibernate.processor.test.data.eg.Type.Book")
|
||||||
|
long deleteAllBooks();
|
||||||
|
|
||||||
|
@Query("delete from Book where type = Book and isbn in ?1")
|
||||||
|
int deleteBooks(List<String> isbns);
|
||||||
}
|
}
|
||||||
|
@ -88,6 +88,9 @@ record BookWithAuthor(Book book, Author author) {}
|
|||||||
@Delete
|
@Delete
|
||||||
void delete(Publisher publisher);
|
void delete(Publisher publisher);
|
||||||
|
|
||||||
|
@Update
|
||||||
|
void updateAll(Publisher... publishers);
|
||||||
|
|
||||||
@Find
|
@Find
|
||||||
@OrderBy("isbn")
|
@OrderBy("isbn")
|
||||||
CursoredPage<Book> allBooks(PageRequest<Book> pageRequest);
|
CursoredPage<Book> allBooks(PageRequest<Book> pageRequest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user