Blasius Lofi Dewanto wrote:
> 
> Hi all!
> 
> Maybe someone can tell me how to sort the result of the
> find method:
> - Do I have to use collection framework for this?
> - Or can I just insert "sort by" clause in the deployment
>   descriptor of jonas.

Hello,

yes you can use an "ORDER BY" (sql standard, for e.g. Oracle,
Informix, ...) in the JOnAS deployment descriptor.
Example: to order the result of the findAllAccounts method
         in the JOnAS eb example, you may have to following
         element in the <jdbc-mapping> element of your JOnAS
         descriptor (jonas-ejb-jar.xml in eb):

      <finder-method-jdbc-mapping>
        <jonas-method>
          <method-name>findAllAccounts</method-name>
        </jonas-method>
        <jdbc-where-clause>order by balance</jdbc-where-clause>
      </finder-method-jdbc-mapping>

Regards,

Fran�ois

-- 
==================================================================
Francois EXERTIER         Evidian (Groupe Bull)
     1, rue de Provence,  BP 208,  38432 Echirolles cedex, FRANCE
     mailto:[EMAIL PROTECTED]
     http://www.evidian.com/jonas/
     Tel: +33 (0)4 76 29 71 51  -  Fax:   +33 (0)4 76 29 76 00 
     PC: B1-319        Office: B1-316 
==================================================================
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to