[HHH-2550] Update API Class in 10.4.3. Criteria queries
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12717 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
304fc54e32
commit
67889ab73c
|
@ -550,7 +550,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -542,7 +542,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -536,7 +536,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -517,7 +517,7 @@ List cats = q.list();]]></programlisting>
|
|||
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
|
@ -496,7 +496,7 @@ List cats = q.list();]]></programlisting>
|
|||
</para>
|
||||
|
||||
<programlisting><![CDATA[Criteria crit = session.createCriteria(Cat.class);
|
||||
crit.add( Expression.eq( "color", eg.Color.BLACK ) );
|
||||
crit.add( Restrictions.eq( "color", eg.Color.BLACK ) );
|
||||
crit.setMaxResults(10);
|
||||
List cats = crit.list();]]></programlisting>
|
||||
|
||||
|
|
Loading…
Reference in New Issue