|
From: <one...@us...> - 2002-11-24 15:45:56
|
Update of /cvsroot/hibernate/Hibernate/doc/reference/src
In directory sc8-pr-cvs1:/tmp/cvs-serv4213/doc/reference/src
Modified Files:
query_language.xml
Log Message:
property of component type may now appear in select clause
Index: query_language.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/doc/reference/src/query_language.xml,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** query_language.xml 24 Nov 2002 10:55:26 -0000 1.22
--- query_language.xml 24 Nov 2002 15:45:53 -0000 1.23
***************
*** 56,60 ****
<para>
! You may select any property (not just associations):
</para>
--- 56,60 ----
<para>
! Queries may return properties any value type including properties of component type:
</para>
***************
*** 72,82 ****
<para>
! Queries may return properties of value type and may even return aggregate functions of these properties.
! Collections may also appear inside aggregate functions in the <literal>select</literal> clause.
</para>
! <programlisting><![CDATA[select cat.name, cat.mate.name from cat in class eg.Cat
!
! select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)
from cat in class eg.Cat
--- 72,80 ----
<para>
! Queryies may even return aggregate functions of properties. Collections may also appear
! inside aggregate functions in the <literal>select</literal> clause.
</para>
! <programlisting><![CDATA[select avg(cat.weight), sum(cat.weight), max(cat.weight), count(cat)
from cat in class eg.Cat
|