git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6099 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2005-03-17 09:57:40 +00:00
parent 30b0f75b6e
commit bae55b2f3c
3 changed files with 5 additions and 4 deletions

View File

@ -291,7 +291,7 @@ System.out.println( dc.getWeight() ); // 11.0]]></programlisting>
</para> </para>
<programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid); <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> Cat fritz = (Cat) iter.next();]]></programlisting>
<para> <para>

View File

@ -933,7 +933,7 @@ having count(msg) = 0]]></programlisting>
Properties of a JavaBean can be bound to named query parameters: Properties of a JavaBean can be bound to named query parameters:
</para> </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() q.setProperties(fooBean); // fooBean has getName() and getSize()
List foos = q.list();]]></programlisting> List foos = q.list();]]></programlisting>

View File

@ -147,10 +147,11 @@
Required or not? Required or not?
</entry> </entry>
<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 Hibernate distribution. This is an up-to-date list of 3rd party
libraries distributed with Hibernate. You will find all required 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> </entry>
</row> </row>
</tbody> </tbody>