>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 finder methods do not return
>java.util.List's! They return java.util.Collection. Your functionality
>will break when the container changes it's implementation.


I'll bet a case of beer that you can't find a J2EE server that uses an
unordered implementation for the Collection :-)

I would guess that Orion actually walks the RowSet from the Iterator
rather than trying to shove everything into core first.  Otherwise
finders are going to choke on big queries.

I think assuming this behavior is reasonably portable.  My only worry is
whether or not other app servers let you customize the finder sql so
easily.

Jeff

Reply via email to