|
27 | 27 | import org.hibernate.proxy.HibernateProxy;
|
28 | 28 | import org.hibernate.query.Order;
|
29 | 29 | import org.hibernate.query.Page;
|
| 30 | +import org.hibernate.query.criteria.JpaCriteriaInsert; |
30 | 31 | import org.hibernate.reactive.common.AffectedEntities;
|
31 | 32 | import org.hibernate.reactive.common.Identifier;
|
32 | 33 | import org.hibernate.reactive.common.ResultSetMapping;
|
@@ -1016,6 +1017,17 @@ default CompletionStage<Void> lock(Object entity, LockModeType lockModeType) {
|
1016 | 1017 | */
|
1017 | 1018 | MutationQuery createMutationQuery(CriteriaDelete<?> deleteQuery);
|
1018 | 1019 |
|
| 1020 | + /** |
| 1021 | + * Create a {@link MutationQuery} from the given insert select criteria tree |
| 1022 | + * |
| 1023 | + * @param insert the insert select criteria query |
| 1024 | + * |
| 1025 | + * @return The {@link MutationQuery} instance for manipulation and execution |
| 1026 | + * |
| 1027 | + * @see org.hibernate.query.QueryProducer#createMutationQuery(JpaCriteriaInsert) |
| 1028 | + */ |
| 1029 | + MutationQuery createMutationQuery(JpaCriteriaInsert<?> insert); |
| 1030 | + |
1019 | 1031 | /**
|
1020 | 1032 | * Create an instance of {@link Query} for the given HQL/JPQL query
|
1021 | 1033 | * string or HQL/JPQL update or delete statement. In the case of an
|
@@ -1707,6 +1719,17 @@ default <T> CompletionStage<T> get(Class<T> entityClass, Object id, LockModeType
|
1707 | 1719 | */
|
1708 | 1720 | MutationQuery createMutationQuery(CriteriaDelete<?> deleteQuery);
|
1709 | 1721 |
|
| 1722 | + /** |
| 1723 | + * Create a {@link MutationQuery} from the given insert select criteria tree |
| 1724 | + * |
| 1725 | + * @param insert the insert select criteria query |
| 1726 | + * |
| 1727 | + * @return The {@link MutationQuery} instance for manipulation and execution |
| 1728 | + * |
| 1729 | + * @see org.hibernate.query.QueryProducer#createMutationQuery(JpaCriteriaInsert) |
| 1730 | + */ |
| 1731 | + MutationQuery createMutationQuery(JpaCriteriaInsert<?> insert); |
| 1732 | + |
1710 | 1733 | /**
|
1711 | 1734 | * Create an instance of {@link Query} for the given SQL query string,
|
1712 | 1735 | * or SQL update, insert, or delete statement. In the case of an update,
|
|
0 commit comments