order by clause in collection-descriptor

"Guillaume DROUIN" <[email protected]> Tue, 5 Feb 2008 09:44:54 +0100
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <C9DBA46C626DEA458AEF65C6D2180C9D502599@messagerie.eurodatacar.com>
Hi,

 

Is collection-descriptor can works with 3 fields in the order by clause?

 

Example:

  <collection-descriptor

    name="allContractEvents"

 
element-class-ref="com.steria.edcis.individual.contract.ContractEvent"

    orderby="PCONT_CPT , CNTEVT_DATE, CNTEVT_ID "

    sort="DESC,DESC,DESC"

  >

    <inverse-foreignkey field-ref="contractId"/>

    <query-customizer

                class="com.steria.db.QueryCustomizerEqualImpl">

                <attribute

                attribute-name="active"

                attribute-value="true"

      />

    </query-customizer>

  </collection-descriptor>

 

In my application it seems works only for the first element (pcont_cpt).
Is it normal?

I have db-ojb-1.0.rc6.

I apologise for my English.

Thank you all.