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("")
|
||||
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 @@ public interface Library {
|
|||
|
||||
@Find
|
||||
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…
Reference in New Issue