Can I assume based on the lack of responses that there is no way to sort
these collections via Castor?


-----Original Message-----
From: Ronald Rudy [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 9:55 AM
To: [email protected]
Subject: [castor-dev] Ordering objects in one-to-many relationship..


I have a simple object that has as an attribute an arraylist of many 'child'
objects based on a foreign key.  This works perfectly fine with the
following mapping syntax:

   <class name="com.xyz.ParentObject" identity="parentId"
key-generator="SEQUENCE">
      <description>"Parent Object"</description>
      <map-to table="parent"/>
      <cache-type type="none"/>
      {...}
      <field name="children" type="com.xyz.ChildObject"
collection="arraylist">
         <sql many-key="parent_id"/>
      </field>
      {...}
   </class>

This loads perfectly fine without issue, but what I'd like to do is order
the arraylist that is generated based on two identified columns.  Is this
possible without manually reordering the collected arraylist?


Ronald Rudy ([EMAIL PROTECTED])
Cross Current Corporation

Reply via email to