diff --git a/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/basic/BookAuthorRepository.java b/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/basic/BookAuthorRepository.java index ce5123095ec3..b34494636977 100644 --- a/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/basic/BookAuthorRepository.java +++ b/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/basic/BookAuthorRepository.java @@ -213,4 +213,13 @@ public interface BookAuthorRepository { @Query("") List 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); } diff --git a/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/reactive/Library.java b/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/reactive/Library.java index 73c3ddd6b4ca..6de880b943a8 100644 --- a/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/reactive/Library.java +++ b/tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/reactive/Library.java @@ -107,4 +107,13 @@ record BookWithAuthor(Book book, Author author) {} @Find Uni> authorsByCityAndPostcode(String address_city, String address_postcode); + + @Query("update Author set address = :address where ssn = :id") + Uni updateAuthorAddress1(String id, Address address); + + @Query("update Author set address = :address where ssn = :id") + Uni updateAuthorAddress2(String id, Address address); + + @Query("update Author set address = :address where ssn = :id") + Uni updateAuthorAddress3(String id, Address address); }