Minor
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6099 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
30b0f75b6e
commit
bae55b2f3c
|
@ -291,7 +291,7 @@ System.out.println( dc.getWeight() ); // 11.0]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
|
||||
Iterator iter = session.iterate("from cat in class CatImpl where cat.name='fritz'");
|
||||
Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
|
||||
Cat fritz = (Cat) iter.next();]]></programlisting>
|
||||
|
||||
<para>
|
||||
|
|
|
@ -933,7 +933,7 @@ having count(msg) = 0]]></programlisting>
|
|||
Properties of a JavaBean can be bound to named query parameters:
|
||||
</para>
|
||||
|
||||
<programlisting><![CDATA[Query q = s.createQuery("from foo in class Foo where foo.name=:name and foo.size=:size");
|
||||
<programlisting><![CDATA[Query q = s.createQuery("from foo Foo as foo where foo.name=:name and foo.size=:size");
|
||||
q.setProperties(fooBean); // fooBean has getName() and getSize()
|
||||
List foos = q.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -147,10 +147,11 @@
|
|||
Required or not?
|
||||
</entry>
|
||||
<entry>
|
||||
Have a look at the file <literal>lib/README.txt</literal> in the
|
||||
Have a look at the file <literal>lib/version.properties</literal> in the
|
||||
Hibernate distribution. This is an up-to-date list of 3rd party
|
||||
libraries distributed with Hibernate. You will find all required
|
||||
and optional libraries listed there.
|
||||
and optional libraries listed there (note that "buildtime required"
|
||||
here means for Hibernate's build, not your application).
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue