Changeset 149 for trunk/testapp

Show
Ignore:
Timestamp:
04/27/06 22:40:01 (3 years ago)
Author:
laurentj
Message:

ajout d'un attribut 'distinct' sur les methodes dao

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/testapp/modules/testapp/daos/testnews.dao.xml

    r131 r149  
    3232        <limit offset="0" count="$limit" /> 
    3333    </method> 
     34    <method name="selectdistinct" type="select" distinct="titre"> 
     35        <parameter name="limit" /> 
     36        <conditions> 
     37            <eq property="valider" value="3" /> 
     38        </conditions> 
     39        <order> 
     40            <orderitem property="date" way="desc" /> 
     41        </order> 
     42        <limit offset="0" count="$limit" /> 
     43    </method> 
     44    <method name="countdistinct" type="count" distinct="titre"> 
     45        <parameter name="limit" /> 
     46        <conditions> 
     47            <eq property="valider" value="3" /> 
     48        </conditions> 
     49    </method> 
     50 
     51 
    3452  </factory> 
    3553</dao> 
Download in other formats: Unified Diff Zip Archive