hi,
just do this
<sample>
QueryByCriteria query = new QueryByCriteria(Note.class, crit);
query.addOrderBy("company.type", true);
</sample>
the orderBy methods where moved to the QueryByCriteria class.
gerhard
Am Fre, den 30.07.2004 schrieb Glauber Andrade um 16:45:
> I don�t understand...
> What should I do ?
>
> Criteria crit = new Criteria();
> crit.addEqualTo("nf", nf);
> // crit.addOrderBy("company.type", true); // deprecated
> Query query = new QueryByCriteria(Note.class, crit);
>
>
> -------Mensagem original-------
>
> De: OJB Users List
> Data: 07/30/04 11:22:49
> Para: OJB Users List
> Assunto: Re: addOrderBy
>
> I think you should create a QueryByCriteria, and the use the
> addOrderBy
> on the query.
>
> Richter
>
> Em Sex, 2004-07-30 �s 11:19, Glauber Andrade escreveu:
> > Hello,
> >
> > I was using rc5 and I changed to 1.0.0 today.
> >
> > I use Criteria.addOrderBy() and now it has been deprecated. How do I
> > order ??
> >
> > Glauber
> >
> >
> >
> >
> >
> > ____________________________________________________
> > IncrediMail - O mundo do correio eletr�nico finalmente
> > desenvolveu-se - Clique aqui
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ____________________________________________________
> IncrediMail - O mundo do correio eletr�nico finalmente
> desenvolveu-se - Clique aqui
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]