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.*} - -