db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Braeuchi" <jbraeu...@gmx.ch>
Subject multiple orderby in CollectionDescriptor
Date Mon, 16 Dec 2002 18:29:35 GMT
hi all,

i just commited some modifications to support multiple orderby for
CollectionDescriptor:

<collection-descriptor
name="allArticlesInGroup"
element-class-ref="org.apache.ojb.broker.Article"
auto-retrieve="true"
auto-update="true"
auto-delete="false"
>

<orderby name="articleId" sort="DESC"/>
<orderby name="articleName" sort="DESC"/>

<inverse-foreignkey field-id-ref="4"/>
</collection-descriptor>

the old style single orderby is still supported for compatibility.

     <collection-descriptor
         name="konti"
         orderby="saldo"
         sort="ASC"
         element-class-ref="brj.ojb.Konto"
         proxy="true"
         auto-retrieve="true"
         auto-update="true"
         auto-delete="true"
      >

jakob


Mime
View raw message