From 2c33c78056350861ad2624b2e2a3f0ff38618a58 Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Fri, 8 Jul 2005 07:49:21 +0000 Subject: [PATCH] better table git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7421 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- reference/en/modules/query_sql.xml | 39 ++++++++++++++---------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/reference/en/modules/query_sql.xml b/reference/en/modules/query_sql.xml index 29edaa5bfc..bc6c29fb0c 100644 --- a/reference/en/modules/query_sql.xml +++ b/reference/en/modules/query_sql.xml @@ -148,64 +148,61 @@ List loggedCats = sess.createSQLQuery(sql) Description Syntax - Result + Example A simple property - A_NAME as {item.name} - ANAME as name0_0_ + {[aliasname].[propertyname] + A_NAME as {item.name} - A multi-column property + A composite property + {[aliasname].[componentname].[propertyname]} CURRENCY as {item.amount.currency}, VALUE as {item.amount.value} - CURRENCY as curr0_0_, VALUE as curr1_0_ Discriminator of an entity - DISC as {item.class} - + {[aliasname].class} + DISC as {item.class} All properties of an entity + {[aliasname].*} {item.*} - ANAME as name0_0_, CURRENCY as curr0_0_, VALUE as curr1_0_ A collection key - {coll.key} - + {[aliasname].key} + ORGID as {coll.key} The id of an collection - {coll.id} - - + {[aliasname].id} + EMPID as {coll.id} The element of an collection - {coll.element} + {[aliasname].element} + XID as {coll.element} Property of the element in the collection - {coll.element.name} - - + {[aliasname].element.[propertyname]} + NAME as {coll.element.name} All properties of the element in the collection + {[aliasname].element.*} {coll.element.*} - - All properties of the the collection + {[aliasname].*} {coll.*} - -