>From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
>
>You are relying on an implementation detail of your container.
>
>The reason it has worked for you so far is because your container has
>used an instance of java.util.ArrayList/LinkedList, which indeed does
>guarantee order. But CMP Entity EJB's
der.
Hope this helps.
Robert Hargreaves.
> -Original Message-
> From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
> Sent: 30 March 2001 16:47
> To: Orion-Interest
> Cc: Magnus Rydin (E-mail)
> Subject: Re: findByXXX() with an ORDER BY parameter for
> Container-managed bean
ope this helps.
>
> Robert Hargreaves.
>
> > -Original Message-
> > From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
> > Sent: 30 March 2001 16:47
> > To: Orion-Interest
> > Cc: Magnus Rydin (E-mail)
> > Subject: Re: findByXXX() with an ORDER BY par
I'd guess, though I haven't tried it, that you could declare a finder with
two arguments- your object and a String. Something like:
findByGroupNameSorted(GroupName gn, String dir)
where dir would be "asc" or "desc" (either constants or a special
mini-bean{tm})
Then, in your orion-ejb-jar.xml, do
this helps.
Robert Hargreaves.
> -Original Message-
> From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
> Sent: 30 March 2001 16:47
> To: Orion-Interest
> Cc: Magnus Rydin (E-mail)
> Subject: Re: findByXXX() with an ORDER BY parameter for
> Container-managed bean ?
>
&
Having ORDER BY in finder method queries is futile. Iterators of
java.util.Collection are not required to return objects in any kind of
order.
Regards, Markus Holmberg.
On Fri, Mar 30, 2001 at 09:35:20PM +0700, Meo Van Le wrote:
> Dear all,
> Could you tell me how to pass an ORDER BY param