My object is sorted by more than one column.  It is best, I think, to
utilize compareTo in this instance.  More important, would the below
method be as optimal as the method I purpose - if so, could I have it
sort by multiple columns?


On Sun, 20 Feb 2005 17:24:31 +0100, Jakob Braeuchi <[EMAIL PROTECTED]> wrote:
> hi jamo,
> 
> the collecton descriptor supports sorting. ie:
> 
>       <collection-descriptor
>          name="allArticlesInGroup"
>          element-class-ref="org.apache.ojb.broker.AbstractArticle"
>          auto-retrieve="true"
>          auto-update="true"
>          auto-delete="false"
>       >
>          <orderby name="articleId" sort="DESC"/>
>          <inverse-foreignkey field-ref="productGroupId" />
>       </collection-descriptor>
> 
> hth
> jakob
> 
> Jamo Smith schrieb:
> > I have a one to many relationship.  I need to retrieve the many in a
> > SortedSet as optimally as possible(instead of retrieving as a
> > collection then adding to a TreeSet)  What is the way to do this with
> > OJB?
> >
> > --
> > Jamo Smith
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jamo Smith

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to