This one time, at band camp, Ron Alsobrook said:

RA>I have a Gallery object that contains a collection of dependent Image 
RA>objects.  Is there a way to order those Image objects automatically 
RA>when I do a db.load such as:
RA>
RA>g = (Gallery) db.load(Gallery.class, new Integer(id));
RA>
RA>Or do I have to use some OQL?  Thanks!

Ron,

Unfortunately you'll need to use OQL to specify an ORDER BY clause. AFAIK,
the db.load() method is just whatever order in which the database returns
the data.

Bruce
-- 
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to