|
From: <one...@us...> - 2002-11-19 15:35:38
|
Update of /cvsroot/hibernate/Hibernate/doc/reference/html_single
In directory sc8-pr-cvs1:/tmp/cvs-serv2395/doc/reference/html_single
Modified Files:
index.html
Log Message:
allow not between, not in in query language
allow subqueries beginning with a from clause in query language
Index: index.html
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/doc/reference/html_single/index.html,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** index.html 19 Nov 2002 10:42:17 -0000 1.80
--- index.html 19 Nov 2002 15:35:35 -0000 1.81
***************
*** 2695,2712 ****
Java <tt>public static final</tt> constants <tt>eg.Color.TABBY</tt>
</p></li></ul></div><p>
! <tt>in</tt> and <tt>between</tt>
! may be used as follows:
</p><pre class="programlisting">from cat in class eg.DomesticCat where cat.name between 'A' and 'B'
from cat in class eg.DomesticCat where cat.name in ( 'Foo', 'Bar', Baz" )</pre><p>
! but the negated forms should be written
! </p><pre class="programlisting">from cat in class eg.DomesticCat where not cat.name between 'A' and 'B'
!
! from cat in class eg.DomesticCat where not cat.name in ( 'Foo', 'Bar', Baz" )</pre><p>
! rather than
! </p><pre class="programlisting">from cat in class eg.DomesticCat where cat.name not between 'A' and 'B' (Error)
! from cat in class eg.DomesticCat where cat.name not in ( 'Foo', 'Bar', Baz" ) (Error)</pre><p>
! However, both <tt>is null</tt> and <tt>is not null</tt> may be used to test
for null values.
</p><p>
--- 2695,2707 ----
Java <tt>public static final</tt> constants <tt>eg.Color.TABBY</tt>
</p></li></ul></div><p>
! <tt>in</tt> and <tt>between</tt> may be used as follows:
</p><pre class="programlisting">from cat in class eg.DomesticCat where cat.name between 'A' and 'B'
from cat in class eg.DomesticCat where cat.name in ( 'Foo', 'Bar', Baz" )</pre><p>
! and the negated forms may be written
! </p><pre class="programlisting">from cat in class eg.DomesticCat where cat.name not between 'A' and 'B'
! from cat in class eg.DomesticCat where cat.name not in ( 'Foo', 'Bar', Baz" )</pre><p>
! Likewise, <tt>is null</tt> and <tt>is not null</tt> may be used to test
for null values.
</p><p>
***************
*** 2809,2813 ****
from cat in class eg.DomesticCat where cat.name =
! some( select list.name from list in class eg.NameList )</pre></div></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="transactions"></a>Chapter 8. Transactions And Concurrency</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>8.1. <a href="#transactions-s1">Datastores, Sessions and Factories</a></dt><dt>8.2. <a href="#transactions-s3">Threads and connections</a></dt><dt>8.3. <a href="#transactions-s5">Optimistic Locking / Versioning</a></dt><dd><dl><dt>8.3.1. <a href="#transactions-s5-1">Long session with automatic versioning</a></dt><dt>8.3.2. <a href="#transactions-s5-2">Many sessions with automatic versioning</a></dt><dt>8.3.3. <a href="#transactions-s5-3">Application version checking</a></dt></dl></dd><dt>8.4. <a href="#transactions-s2">Session disconnection</a></dt><dt>8.5. <a href="#transactions-s4">Pessimistic Locking</a></dt></dl></div><p>
Hibernate is not itself a database. It is a lightweight object-relational
mapping tool. Transaction management is delegated to the underlying database
--- 2804,2811 ----
from cat in class eg.DomesticCat where cat.name =
! some( select list.name from list in class eg.NameList )
!
! from cat in class eg.Cat where not exists
! ( from mate in class eg.Cat where mate.mate = cat )</pre></div></div><div class="chapter"><div class="titlepage"><div><h2 class="title"><a name="transactions"></a>Chapter 8. Transactions And Concurrency</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt>8.1. <a href="#transactions-s1">Datastores, Sessions and Factories</a></dt><dt>8.2. <a href="#transactions-s3">Threads and connections</a></dt><dt>8.3. <a href="#transactions-s5">Optimistic Locking / Versioning</a></dt><dd><dl><dt>8.3.1. <a href="#transactions-s5-1">Long session with automatic versioning</a></dt><dt>8.3.2. <a href="#transactions-s5-2">Many sessions with automatic versioning</a></dt><dt>8.3.3. <a href="#transactions-s5-3">Application version checking</a></dt></dl></dd><dt>8.4. <a href="#transactions-s2">Session disconnection</a></dt><dt>8.5. <a href="#transactions-s4">Pessimistic Locking</a></dt></dl></div><p>
Hibernate is not itself a database. It is a lightweight object-relational
mapping tool. Transaction management is delegated to the underlying database
|