mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
add tests for UPDATE queries in reactive and regular repos
This commit is contained in:
parent
3b3bd5ec1a
commit
2efcb1de6b
@ -213,4 +213,13 @@ public interface BookAuthorRepository {
|
|||||||
|
|
||||||
@Query("")
|
@Query("")
|
||||||
List<Author> withNoOrder2(PageRequest pageRequest);
|
List<Author> withNoOrder2(PageRequest pageRequest);
|
||||||
|
|
||||||
|
@Query("update Author set name = :name where ssn = :id")
|
||||||
|
void updateAuthorAddress1(String id, String name);
|
||||||
|
|
||||||
|
@Query("update Author set name = :name where ssn = :id")
|
||||||
|
int updateAuthorAddress2(String id, String name);
|
||||||
|
|
||||||
|
@Query("update Author set name = :name where ssn = :id")
|
||||||
|
boolean updateAuthorAddress3(String id, String name);
|
||||||
}
|
}
|
||||||
|
@ -107,4 +107,13 @@ record BookWithAuthor(Book book, Author author) {}
|
|||||||
|
|
||||||
@Find
|
@Find
|
||||||
Uni<List<Author>> authorsByCityAndPostcode(String address_city, String address_postcode);
|
Uni<List<Author>> authorsByCityAndPostcode(String address_city, String address_postcode);
|
||||||
|
|
||||||
|
@Query("update Author set address = :address where ssn = :id")
|
||||||
|
Uni<Void> updateAuthorAddress1(String id, Address address);
|
||||||
|
|
||||||
|
@Query("update Author set address = :address where ssn = :id")
|
||||||
|
Uni<Integer> updateAuthorAddress2(String id, Address address);
|
||||||
|
|
||||||
|
@Query("update Author set address = :address where ssn = :id")
|
||||||
|
Uni<Boolean> updateAuthorAddress3(String id, Address address);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user