You can put an order field in the jaws entry
<entity>
<ejb-name>SteveBean</ejb-name>
<create-table>true</create-table>
<table-name>STEVE</table-name>
<finder>
<name>findByAll</name>
<order> last_name ASC</order>
</finder>
</entity>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Kasperowski
Sent: Thursday, June 21, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] CMP findAll: how to specify order of returned
objects?
I have CMP bean with a findAll operation that returns a Collection of
objects. The order of the objects in the collection seems to be
arbitrary: sometimes the sequence is A B C, other times the sequence is
B A C, and other times objects are returned in a different sequence.
As far as I can tell, JBoss doesn't support EJB QL. How, then, can I
specify the order of the objects in the returned Collection?
Thanks,
--
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user