@@ -994,6 +994,28 @@ default CompletionStage<Void> lock(Object entity, LockModeType lockModeType) {
994
994
*/
995
995
MutationQuery createMutationQuery (String queryString );
996
996
997
+ /**
998
+ * Create an instance of {@link MutationQuery} for the given update tree.
999
+ *
1000
+ * @param updateQuery the update criteria query
1001
+ *
1002
+ * @return The {@link MutationQuery} instance for manipulation and execution
1003
+ *
1004
+ * @see org.hibernate.query.QueryProducer#createMutationQuery(CriteriaUpdate)
1005
+ */
1006
+ <R > MutationQuery createMutationQuery (CriteriaUpdate <R > updateQuery );
1007
+
1008
+ /**
1009
+ * Create an instance of {@link MutationQuery} for the given delete tree.
1010
+ *
1011
+ * @param deleteQuery the delete criteria query
1012
+ *
1013
+ * @return The {@link MutationQuery} instance for manipulation and execution
1014
+ *
1015
+ * @see org.hibernate.query.QueryProducer#createMutationQuery(CriteriaDelete)
1016
+ */
1017
+ <R > MutationQuery createMutationQuery (CriteriaDelete <R > deleteQuery );
1018
+
997
1019
/**
998
1020
* Create an instance of {@link Query} for the given HQL/JPQL query
999
1021
* string or HQL/JPQL update or delete statement. In the case of an
@@ -1663,6 +1685,28 @@ default <T> CompletionStage<T> get(Class<T> entityClass, Object id, LockModeType
1663
1685
*/
1664
1686
MutationQuery createMutationQuery (String queryString );
1665
1687
1688
+ /**
1689
+ * Create an instance of {@link MutationQuery} for the given update tree.
1690
+ *
1691
+ * @param updateQuery the update criteria query
1692
+ *
1693
+ * @return The {@link MutationQuery} instance for manipulation and execution
1694
+ *
1695
+ * @see org.hibernate.query.QueryProducer#createMutationQuery(CriteriaUpdate)
1696
+ */
1697
+ <R > MutationQuery createMutationQuery (CriteriaUpdate <R > updateQuery );
1698
+
1699
+ /**
1700
+ * Create an instance of {@link MutationQuery} for the given delete tree.
1701
+ *
1702
+ * @param deleteQuery the delete criteria query
1703
+ *
1704
+ * @return The {@link MutationQuery} instance for manipulation and execution
1705
+ *
1706
+ * @see org.hibernate.query.QueryProducer#createMutationQuery(CriteriaDelete)
1707
+ */
1708
+ <R > MutationQuery createMutationQuery (CriteriaDelete <R > deleteQuery );
1709
+
1666
1710
/**
1667
1711
* Create an instance of {@link Query} for the given SQL query string,
1668
1712
* or SQL update, insert, or delete statement. In the case of an update,
0 commit comments