From 545bb859b72719a8d1fb2f1396e746bfaa6ca779 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 15 Jul 2005 05:13:36 +0000 Subject: [PATCH] doc subselects better git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7488 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- reference/en/modules/query_hql.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/reference/en/modules/query_hql.xml b/reference/en/modules/query_hql.xml index c509a9f8a2..283ab29892 100644 --- a/reference/en/modules/query_hql.xml +++ b/reference/en/modules/query_hql.xml @@ -840,7 +840,7 @@ order by count(kitten) asc, sum(kitten.weight) desc]]> - + Subqueries @@ -869,6 +869,13 @@ where cat.name not in ( select name.nickName from Name as name )]]> + + + + Note that HQL subqueries may occur only in the select or where clauses. + + For subqueries with more than one expression in the select list, you can use a tuple constructor: @@ -1022,12 +1029,13 @@ order by account.type.sortOrder, account.accountNumber, payment.dueDate]]> - - Bulk UPDATE & DELETE Statements + + Bulk update and delete - HQL now supports UPDATE and DELETE statements in HQL. See - for details. + HQL now supports update, delete and + insert ... select ... statements. + See for details.